Class BoolIntPair

java.lang.Object
com.hypixel.hytale.common.tuple.BoolIntPair
All Implemented Interfaces:
Comparable<BoolIntPair>

public class BoolIntPair extends Object implements Comparable<BoolIntPair>
  • Field Details

    • left

      private final boolean left
  • Constructor Details

    • BoolIntPair

      public BoolIntPair(boolean left, int right)
  • Method Details

    • getKey

      public final boolean getKey()
    • getLeft

      public boolean getLeft()
    • getValue

      public final int getValue()
    • getRight

      public int getRight()
    • compareTo

      public int compareTo(@Nonnull BoolIntPair other)
      Specified by:
      compareTo in interface Comparable<BoolIntPair>
    • hashCode

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

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • toString

      @Nonnull public String toString(@Nonnull String format)
    • of

      @Nonnull public static BoolIntPair of(boolean left, int right)