Class UnitNode

    • Constructor Detail

      • UnitNode

        public UnitNode​(Unit data)
        Creates a new UnitNode with a given Unit resource.
        Parameters:
        data - the unit to set for this unit node (must not be null).
    • Method Detail

      • get

        public Unit get()
        Gets the Unit associated with this unit node.
        Returns:
        the unit object associated with this unit node.
      • isUnit

        public boolean isUnit()
        Description copied from interface: IGroupOrUnitNode
        Indicates if this node is a UnitNode.
        Specified by:
        isUnit in interface IGroupOrUnitNode
        Returns:
        true if it is a UnitNode, false if it is a GroupNode.