public class SCMProbeStat extends Object
SCMProbe.stat(String)| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
|
static SCMProbeStat |
fromAlternativePath(String alternativePath)
Creates a
SCMProbeStat from an alternative path suggestion. |
static SCMProbeStat |
fromType(SCMFile.Type type)
Creates a
SCMProbeStat from a SCMFile.Type. |
String |
getAlternativePath()
If
getType()!= SCMFile.Type.NONEXISTENT and there is an alternative name that would
match but for case sensitivity or a typo. |
SCMFile.Type |
getType()
The type of entity or
SCMFile.Type.NONEXISTENT if the entity does not exist. |
public static SCMProbeStat fromType(@NonNull SCMFile.Type type)
SCMProbeStat from a SCMFile.Type.type - the SCMFile.Type.SCMProbeStat.public static SCMProbeStat fromAlternativePath(@NonNull String alternativePath)
SCMProbeStat from an alternative path suggestion.alternativePath - the suggested alternative path.SCMProbeStat.public boolean exists()
getType()!= SCMFile.Type.NONEXISTENT.@CheckForNull public String getAlternativePath()
getType()!= SCMFile.Type.NONEXISTENT and there is an alternative name that would
match but for case sensitivity or a typo.@NonNull public SCMFile.Type getType()
SCMFile.Type.NONEXISTENT if the entity does not exist.Copyright © 2016–2019. All rights reserved.