Class ContourPlot.Pair<T1,​T2>

  • Type Parameters:
    T1 - type 1
    T2 - type 2
    Enclosing class:
    ContourPlot

    public static class ContourPlot.Pair<T1,​T2>
    extends java.lang.Object
    Pair class. Access directly through first and second.
    Author:
    hageldave
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T1 first  
      T2 second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(T1 first, T2 second)
      Creates a pair
    • Field Detail

      • first

        public final T1 first
      • second

        public final T2 second
    • Constructor Detail

      • Pair

        public Pair​(T1 first,
                    T2 second)
        Creates a pair
        Parameters:
        first - part of pair
        second - part of pair
    • Method Detail

      • of

        public static <T1,​T2> ContourPlot.Pair<T1,​T2> of​(T1 first,
                                                                     T2 second)
        syntactic sugar
        Type Parameters:
        T1 - type 1
        T2 - type 2
        Parameters:
        first - part of pair
        second - part of pair
        Returns:
        a new Pair
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object