Class MutablePair

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class MutablePair<A extends Object, B extends Object>
     implements Serializable
                        

    Contains mutable pair of objects. Imitates Kotlin Pair, but it's mutable.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A first
      private B second
    • Constructor Summary

      Constructors 
      Constructor Description
      MutablePair(A first, B second)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final A getFirst()
      final Unit setFirst(A first)
      final B getSecond()
      final Unit setSecond(B second)
      String toString() Returns string representation of the Pair including its first and second values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait