Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility
Interface Association<K,V>


public interface Association<K,V>

Straightforward definition of an object pairing. The key is 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.


Nested Class Summary
static class Association.KeyTransformer<K,V>
           
static class Association.ValueTransformer<K,V>
           
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer KEY_TRANSFORMER
           
static org.eclipse.jpt.common.utility.transformer.Transformer VALUE_TRANSFORMER
           
 
Method Summary
 boolean equals(Object o)
          Return true if the associations' keys and values are equal.
 K getKey()
          Return the association's key.
 V getValue()
          Return the association's value.
 int hashCode()
          Return a hash code based on the association's key and value.
 V setValue(V value)
          Set the association's value.
 

Field Detail

KEY_TRANSFORMER

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

VALUE_TRANSFORMER

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

getKey

K getKey()
Return the association's key.


getValue

V getValue()
Return the association's value.


setValue

V setValue(V value)
Set the association's value. Return the previous value.


equals

boolean equals(Object o)
Return true if the associations' keys and values are equal.

Overrides:
equals in class Object

hashCode

int hashCode()
Return a hash code based on the association's key and value.

Overrides:
hashCode in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.