Class AbstractLink

    • Constructor Detail

      • AbstractLink

        public AbstractLink​(String itemName)
        Constructor.
        Parameters:
        itemName - the item name for the link
        Throws:
        IllegalArgumentException - if the item name is invalid
    • Method Detail

      • getIDFor

        public static String getIDFor​(String itemName,
                                      UID uid)
        Returns the link ID for a given item name and UID
        Parameters:
        itemName - item name
        uid - UID
        Returns:
        the item channel link ID
      • equals

        public boolean equals​(@Nullable Object obj)
        Overrides:
        equals in class Object
      • getItemName

        public String getItemName()
        Returns the item that is linked to the object.
        Returns:
        item name (can not be null)
      • getLinkedUID

        public abstract UID getLinkedUID()
        Returns the UID of the object, which is linked to the item.
        Returns:
        UID (can not be null)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object