Skip navigation links
C D E F G H P S T 

C

ComparablePair<First extends Comparable<? super First>,Second extends Comparable<? super Second>> - Interface in de.scravy.pair
A Pair which is Comparable.
ComparableSerializablePair<First extends Serializable & Comparable<? super First>,Second extends Serializable & Comparable<? super Second>> - Interface in de.scravy.pair
A Pair which is both Comparable and Serializable.
compare(Pair<First, Second>, Pair<First, Second>) - Static method in class de.scravy.pair.Pairs
compare(a, b) lexicographically compares the pair a with the pair b.
compare(First, Second, First, Second) - Static method in class de.scravy.pair.Pairs
compare(a, b, c, d) lexicographically compares the pair (a, b) with the pair (c, d).

D

de.scravy.pair - package de.scravy.pair
This package provides ordered pairs that consist of a first (left) and a second (right) component.

E

equals(Object) - Method in interface de.scravy.pair.Pair
equals for Pairs works almost the same as for objects, minus checking for whether the other object is of the same class.
equals(Pair<F, S>, Object) - Static method in class de.scravy.pair.Pairs
Compares two pairs for equality.

F

from(First, Second) - Static method in class de.scravy.pair.Pairs
Create a simple pair from it's first and second component.
fromComparables(First, Second) - Static method in class de.scravy.pair.Pairs
Creates a pair from comparables which is itself Comparable.
fromComparableSerializables(First, Second) - Static method in class de.scravy.pair.Pairs
Creates a pair from components which are comparable and serializable which is itself Comparable and Serializable.
fromSerializables(First, Second) - Static method in class de.scravy.pair.Pairs
Creates a pair from serializables which is itself Serializable.

G

getFirst() - Method in interface de.scravy.pair.Pair
Get the first (left) component of this pair.
getSecond() - Method in interface de.scravy.pair.Pair
Get the second (right) component of this pair.

H

hashCode(Pair<F, S>) - Static method in class de.scravy.pair.Pairs
Computes the hash code of a pair.

P

Pair<First,Second> - Interface in de.scravy.pair
A pair consisting of a first (left) and a second (right) component.
Pairs - Class in de.scravy.pair
Static methods for dealing with all sorts of pairs.
Pairs() - Constructor for class de.scravy.pair.Pairs
 

S

SerializablePair<First extends Serializable,Second extends Serializable> - Interface in de.scravy.pair
A Pair which is Serializable.

T

toArray(Pair<First, Second>, Class<CommonSuperType>) - Static method in class de.scravy.pair.Pairs
Transform a pair into an array of the common super type of both components.
toArray(Pair<First, Second>, CommonSuperType[], int) - Static method in class de.scravy.pair.Pairs
Write a pair into an array of the common super type of both components.
toMap(Iterable<Pair<K, V>>, Class<M>) - Static method in class de.scravy.pair.Pairs
Creates a Map of the given mapType from an Iterable of pairs (k, v).
toMap(Iterable<Pair<K, V>>, M) - Static method in class de.scravy.pair.Pairs
Adds the pairs from the Iterable of pairs (k, v) to the given map.
C D E F G H P S T 
Skip navigation links

Copyright © 2015. All rights reserved.