Package com._1c.g5.v8.dt.compare.model
Class UniqueSymlink
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.model.UniqueSymlink
-
public class UniqueSymlink extends Object
Represents unique symlink. Consists of a usual symbolic link and of an index that supposed to be unique for objects with the same symlinks.
-
-
Constructor Summary
Constructors Constructor Description UniqueSymlink(String symlink)
Creates unique symlink instance with default index.UniqueSymlink(String symlink, int index)
Creates unique symlink instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static UniqueSymlink
fromString(String input)
Creates unique symlink instance from the specified string constructed earlier bytoString()
method.int
getIndex()
Gets index.String
getSymlink()
Gets symbolic link.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
UniqueSymlink
public UniqueSymlink(String symlink)
Creates unique symlink instance with default index. Use it only if the string symbolic link is unique itself.- Parameters:
symlink
- the symbolic link, cannot benull
-
UniqueSymlink
public UniqueSymlink(String symlink, int index)
Creates unique symlink instance.- Parameters:
symlink
- the symbolic link, cannot benull
index
- the index
-
-
Method Detail
-
fromString
public static UniqueSymlink fromString(String input)
Creates unique symlink instance from the specified string constructed earlier bytoString()
method.- Parameters:
input
- the input string value, cannot benull
or empty- Returns:
- the
UniqueSymlink
instance, nevernull
- Throws:
IllegalArgumentException
- if the input does not match the unique symbolic link
-
getSymlink
public String getSymlink()
Gets symbolic link.- Returns:
- the symbolic link, never
null
-
getIndex
public int getIndex()
Gets index.- Returns:
- the index
-
-