java.lang.Object
org.screamingsandals.simpleinventories.inventory.Position
All Implemented Interfaces:
Cloneable

public class Position extends Object implements Cloneable
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • calculateThatPosition

      public int calculateThatPosition(int nextPosition, int columns, int rows)
    • calculateNextPosition

      public int calculateNextPosition(int nextPosition, int columns, int rows)
    • clone

      public Position clone()
      Overrides:
      clone in class Object
    • getAbsolute

      @Nullable public @Nullable Supplier<Integer> getAbsolute()
    • getRow

      @Nullable public @Nullable Supplier<Integer> getRow()
    • getColumn

      @Nullable public @Nullable Function<Integer,Integer> getColumn()
    • getSkip

      @Nullable public @Nullable Supplier<Integer> getSkip()
    • getLinebreak

      @Nullable public @Nullable Supplier<BreakType> getLinebreak()
    • getPagebreak

      @Nullable public @Nullable Supplier<BreakType> getPagebreak()
    • setRow

      public void setRow(@Nullable @Nullable Supplier<Integer> row)
    • setColumn

      public void setColumn(@Nullable @Nullable Function<Integer,Integer> column)
    • setSkip

      public void setSkip(@Nullable @Nullable Supplier<Integer> skip)
    • setLinebreak

      public void setLinebreak(@Nullable @Nullable Supplier<BreakType> linebreak)
    • setPagebreak

      public void setPagebreak(@Nullable @Nullable Supplier<BreakType> pagebreak)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • setAbsolute

      @Deprecated public void setAbsolute(@Nullable @Nullable Supplier<Integer> absolute)
      Deprecated.