Gridarta Editor
net.sf.gridarta.utils.Pair< T, U > Class Template Reference
+ Collaboration diagram for net.sf.gridarta.utils.Pair< T, U >:

Public Member Functions

getFirst ()
 
getSecond ()
 
 Pair (final T first, final U second)
 

Private Attributes

final T first
 
final U second
 

Detailed Description

Stores a pair of values.

Author
Andreas Kirschbaum

Definition at line 26 of file Pair.java.

Constructor & Destructor Documentation

◆ Pair()

net.sf.gridarta.utils.Pair< T, U >.Pair ( final T  first,
final U  second 
)

Creates a new instance.

Parameters
firstthe first value
secondthe second value

Definition at line 43 of file Pair.java.

References net.sf.gridarta.utils.Pair< T, U >.first, and net.sf.gridarta.utils.Pair< T, U >.second.

Member Function Documentation

◆ getFirst()

T net.sf.gridarta.utils.Pair< T, U >.getFirst ( )

Returns the first value.

Returns
the first value

Definition at line 52 of file Pair.java.

References net.sf.gridarta.utils.Pair< T, U >.first.

◆ getSecond()

U net.sf.gridarta.utils.Pair< T, U >.getSecond ( )

Returns the second value.

Returns
the second value

Definition at line 60 of file Pair.java.

References net.sf.gridarta.utils.Pair< T, U >.second.

Member Data Documentation

◆ first

final T net.sf.gridarta.utils.Pair< T, U >.first
private

The first value.

Definition at line 31 of file Pair.java.

Referenced by net.sf.gridarta.utils.Pair< T, U >.getFirst(), and net.sf.gridarta.utils.Pair< T, U >.Pair().

◆ second

final U net.sf.gridarta.utils.Pair< T, U >.second
private

The second value.

Definition at line 36 of file Pair.java.

Referenced by net.sf.gridarta.utils.Pair< T, U >.getSecond(), and net.sf.gridarta.utils.Pair< T, U >.Pair().


The documentation for this class was generated from the following file: