public class FileSpecBuilder extends Object
Modifier and Type | Method and Description |
---|---|
static List<IFileSpec> |
getInvalidFileSpecs(List<IFileSpec> fileSpecs)
Given a list of file specs, return a list of the invalid file specs in that list.
|
static List<IFileSpec> |
getValidFileSpecs(List<IFileSpec> fileSpecs)
Given a list of file specs, return a list of the valid file specs in that list.
|
static List<IFileSpec> |
makeFileSpecList(List<String> filePaths)
Given a list of file paths (which might include revision or label specs, etc.),
return a corresponding list of file specs.
|
static List<IFileSpec> |
makeFileSpecList(String... filePaths)
Given an array of file paths (which might include revision or label specs, etc.),
return a corresponding list of file specs.
|
public static List<IFileSpec> makeFileSpecList(@Nullable List<String> filePaths)
filePaths
- list of path stringspublic static List<IFileSpec> makeFileSpecList(String... filePaths)
NOTE: use the 'FileSpecBuilder.makeFileSpecList(List
filePaths
- array of path stringspublic static List<IFileSpec> getValidFileSpecs(@Nullable List<IFileSpec> fileSpecs)
fileSpecs
- candidate file specspublic static List<IFileSpec> getInvalidFileSpecs(@Nullable List<IFileSpec> fileSpecs)
fileSpecs
- candidate file specsCopyright © 2017 Perforce Software. All Rights Reserved.