Pair<T> class
A pair of T
.
- Implemented types
-
- Comparable<
Pair< T> >
- Comparable<
Constructors
- Pair.new(T a, T b)
Properties
- a → T
-
Element A of pair.
final
-
asList
→ List<
T> -
Returns this Pair as a List
[a,b]
.no setter -
asMapEntry
→ MapEntry<
T, T> -
Returns this Pair as a MapEntry.
no setter
- b → T
-
Element B of pair.
final
- hashCode → int
-
Pair Hash Code.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
Pair< T> other) → int -
Compare
this
withother
ifT
implements Comparable.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Equality.
override