Class Pair<F,S>

java.lang.Object
com.petrolpark.util.Pair<F,S>
Direct Known Subclasses:
BlockFace

public class Pair<F,S> extends Object
  • Field Details

    • first

      protected F first
    • second

      protected S second
  • Constructor Details

    • Pair

      protected Pair(F first, S second)
  • Method Details

    • of

      public static <F, S> Pair<F,S> of(F first, S second)
    • getFirst

      public F getFirst()
    • getSecond

      public S getSecond()
    • setFirst

      public void setFirst(F first)
    • setSecond

      public void setSecond(S second)
    • copy

      public Pair<F,S> copy()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public Pair<S,F> swap()