Class Positioned<Item,​Position extends Point>

  • Type Parameters:
    Item - The type of the item.
    Position - The type of the point indicating the position.
    All Implemented Interfaces:
    Serializable

    public final class Positioned<Item,​Position extends Point>
    extends Object
    implements Serializable
    Represents an item that has a position.
    Since:
    8.4.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Positioned

        public Positioned​(Item item,
                          Position position)
        Wraps an item in a positioned wrapper with a position.
        Parameters:
        item - The item being positioned.
        position - The position of the item.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • item

        public Item item()
        The item being positioned.
        Returns:
        The item being positioned.
      • position

        public Position position()
        The position of the item.
        Returns:
        The position of the item.