Package org.pkl.core
Class Pair<F,S>
java.lang.Object
org.pkl.core.Pair<F,S>
- All Implemented Interfaces:
Serializable,Iterable<Object>,Value
Java representation of a
pkl.base#Pair value.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ValueConverter<T> converter) Invokes the given converters's convert method for thisValue.voidaccept(ValueVisitor visitor) Invokes the given visitor's visit method for thisValue.booleanPClassInfo<?> Returns information about the Pkl class associated with thisValue.getFirst()Returns the first element of this pair.Returns the second element of this pair.inthashCode()iterator()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Pair
Constructs a pair with the given elements.
-
-
Method Details
-
getFirst
Returns the first element of this pair. -
getSecond
Returns the second element of this pair. -
iterator
-
accept
Description copied from interface:ValueInvokes the given visitor's visit method for thisValue. -
accept
Description copied from interface:ValueInvokes the given converters's convert method for thisValue. -
getClassInfo
Description copied from interface:ValueReturns information about the Pkl class associated with thisValue.- Specified by:
getClassInfoin interfaceValue
-
equals
-
hashCode
public int hashCode() -
toString
-