Class Positioned<Item, Position extends Point>

java.lang.Object
de.xima.fc.common.geometry.Positioned<Item,Position>
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:
  • Constructor Details

    • 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 Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object