Class StorageID

java.lang.Object
com.e1c.langtool.storage.StorageID
All Implemented Interfaces:
Comparable<StorageID>

public class StorageID extends Object implements Comparable<StorageID>
The Storage ID describes provider id and segment inside the provider. The plicy of segmetation defines the provider.
  • Constructor Details

    • StorageID

      public StorageID(String providerId, String segment)
      Instantiates a new storage ID.
      Parameters:
      providerId - the provider id, cannot be null or empty string
      segment - the segment, cannot be null or empty string
  • Method Details

    • create

      public static StorageID create(String fullId)
      Creates a new storage ID from string.
      Parameters:
      fullId - the full id, cannot be null or empty string
    • getProviderId

      public String getProviderId()
      Gets the provider id.
      Returns:
      the providerId, cannot return null.
    • getSegment

      public String getSegment()
      Gets the segment.
      Returns:
      the segment, cannot return null.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(StorageID o)
      Specified by:
      compareTo in interface Comparable<StorageID>