Package com.e1c.langtool.storage
Class StorageID
java.lang.Object
com.e1c.langtool.storage.StorageID
- All Implemented Interfaces:
Comparable<StorageID>
The Storage ID describes provider id and segment inside the provider.
The plicy of segmetation defines the provider.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StorageID
Instantiates a new storage ID.- Parameters:
providerId- the provider id, cannot benullor empty stringsegment- the segment, cannot benullor empty string
-
-
Method Details
-
create
Creates a new storage ID from string.- Parameters:
fullId- the full id, cannot benullor empty string
-
getProviderId
Gets the provider id.- Returns:
- the providerId, cannot return
null.
-
getSegment
Gets the segment.- Returns:
- the segment, cannot return
null.
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<StorageID>
-