Class AbstractDataRecord

    • Constructor Detail

      • AbstractDataRecord

        public AbstractDataRecord​(AbstractSharedBackend backend,
                                  DataIdentifier identifier)
        Creates a data record with the given identifier.
        Parameters:
        identifier - data identifier
    • Method Detail

      • getReference

        public String getReference()
        Delegates the call to the backend to retrieve reference.
        Specified by:
        getReference in interface DataRecord
        Returns:
      • toString

        public String toString()
        Returns the string representation of the data identifier.
        Overrides:
        toString in class Object
        Returns:
        string representation
      • equals

        public boolean equals​(Object object)
        Checks if the given object is a data record with the same identifier as this one.
        Overrides:
        equals in class Object
        Parameters:
        object - other object
        Returns:
        true if the other object is a data record and has the same identifier as this one, false otherwise
      • hashCode

        public int hashCode()
        Returns the hash code of the data identifier.
        Overrides:
        hashCode in class Object
        Returns:
        hash code