Class GenericItem

    • Constructor Detail

      • GenericItem

        public GenericItem​(String name)
    • Method Detail

      • getState

        public State getState()
        Description copied from interface: Item
        returns the current state of the item
        Specified by:
        getState in interface Item
        Returns:
        the current state
      • getStateAs

        public State getStateAs​(Class<? extends State> typeClass)
        Description copied from interface: Item
        returns the current state of the item as a specific type
        Specified by:
        getStateAs in interface Item
        Returns:
        the current state in the requested type or null, if state cannot be provided as the requested type
      • initialize

        public void initialize()
      • dispose

        public void dispose()
      • getName

        public String getName()
        Description copied from interface: Item
        returns the name of the item
        Specified by:
        getName in interface Item
        Returns:
        the name of the item
      • getGroupNames

        public List<String> getGroupNames()
        Description copied from interface: Item
        Returns a list of the names of the groups this item belongs to.
        Specified by:
        getGroupNames in interface Item
        Returns:
        list of item group names
      • setEventPublisher

        public void setEventPublisher​(EventPublisher eventPublisher)
      • internalSend

        protected void internalSend​(Command command)
      • setState

        public void setState​(State state)
      • addStateChangeListener

        public void addStateChangeListener​(StateChangeListener listener)
      • removeStateChangeListener

        public void removeStateChangeListener​(StateChangeListener listener)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object