Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility
Interface Pair<L,R>

Type Parameters:
L - the type of the pair's left value
R - the type of the pair's right value

public interface Pair<L,R>

Straightforward definition of an object pairing. The left and right values are immutable.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

See Also:
Association

Nested Class Summary
static class Pair.LeftTransformer<L,R>
           
static class Pair.RightTransformer<L,R>
           
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer LEFT_TRANSFORMER
           
static org.eclipse.jpt.common.utility.transformer.Transformer RIGHT_TRANSFORMER
           
 
Method Summary
 boolean equals(Object o)
          Return whether the pairs' left and right values are equal.
 L getLeft()
          Return the pair's left value.
 R getRight()
          Return the pair's right value.
 int hashCode()
          Return a hash code that is a XOR of the hash codes of the pair's left and right values.
 

Field Detail

LEFT_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer LEFT_TRANSFORMER

RIGHT_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer RIGHT_TRANSFORMER
Method Detail

getLeft

L getLeft()
Return the pair's left value.


getRight

R getRight()
Return the pair's right value.


equals

boolean equals(Object o)
Return whether the pairs' left and right values are equal.

Overrides:
equals in class Object

hashCode

int hashCode()
Return a hash code that is a XOR of the hash codes of the pair's left and right values.

Overrides:
hashCode in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.