Class Identifier

  • All Implemented Interfaces:

    @Serializable() 
    public final class Identifier
    
                        

    Represents a piece of data that identifies an Object.

    This class represents a piece of data that identifies an Object. If isPartOfUniqueness is false, this data can change over time without creating a new Object. This is primarily used for human-readable values that are useful in identification purposes, but may change at times.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String key
      private final String value
      private final Boolean isPartOfUniqueness
    • Constructor Summary

      Constructors 
      Constructor Description
      Identifier(String key, String value, Boolean isPartOfUniqueness)
      Identifier(String key, String value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getKey() A key that determines which identifier the value corresponds to.
      final String getValue() The value of the identifier.
      final Boolean isPartOfUniqueness() Determines if this key/value pair is used in the identification process.
      String toString()
      Boolean equals(Object other)
      Integer hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Identifier

        Identifier(String key, String value, Boolean isPartOfUniqueness)
      • Identifier

        Identifier(String key, String value)
    • Method Detail

      • getKey

         final String getKey()

        A key that determines which identifier the value corresponds to.

      • getValue

         final String getValue()

        The value of the identifier.

      • isPartOfUniqueness

         final Boolean isPartOfUniqueness()

        Determines if this key/value pair is used in the identification process.

      • equals

         Boolean equals(Object other)