Package com._1c.g5.v8.dt.mcore.util
Class CompositeId
- java.lang.Object
-
- com._1c.g5.v8.dt.mcore.util.CompositeId
-
public class CompositeId extends Object
V8:CompositeID analog.Consists of two parts: int and optional uuid
-
-
Field Summary
Fields Modifier and Type Field Description static CompositeId
NULL_ID
-
Constructor Summary
Constructors Constructor Description CompositeId(int id)
ConstructorCompositeId(int id, UUID uuid)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static CompositeId
fromString(String str)
CreatesCompositeId
instance from string.int
getId()
UUID
getUuid()
int
hashCode()
static boolean
isCompositeId(String string)
Checks whether the given string has the format of composite ID or not.String
toString()
-
-
-
Field Detail
-
NULL_ID
public static final CompositeId NULL_ID
-
-
Constructor Detail
-
CompositeId
public CompositeId(int id, UUID uuid)
Constructor- Parameters:
id
- iduuid
- uuid, may benull
-
CompositeId
public CompositeId(int id)
Constructor- Parameters:
uuid
- uuid (notnull
)
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id
-
getUuid
public UUID getUuid()
- Returns:
- the uuid
-
isCompositeId
public static boolean isCompositeId(String string)
Checks whether the given string has the format of composite ID or not.- Parameters:
string
- the string, cannot benull
- Returns:
true
for composit id.
-
fromString
public static CompositeId fromString(String str)
CreatesCompositeId
instance from string.- Parameters:
str
- string containing compositeId (notnull
)- Returns:
- created
CompositeId
instance
-
-