org.alfresco.repo.attributes
Class MapEntryImpl

java.lang.Object
  extended by org.alfresco.repo.attributes.MapEntryImpl
All Implemented Interfaces:
MapEntry

public class MapEntryImpl
extends java.lang.Object
implements MapEntry

Implementation of map entries.


Constructor Summary
MapEntryImpl()
           
MapEntryImpl(MapEntryKey key, Attribute attribute)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Attribute getAttribute()
          Get the value attribute.
 MapEntryKey getKey()
          Get the primary key.
 int hashCode()
           
 void setAttribute(Attribute attr)
          Set the attribute.
 void setKey(MapEntryKey key)
          Setter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapEntryImpl

public MapEntryImpl()

MapEntryImpl

public MapEntryImpl(MapEntryKey key,
                    Attribute attribute)
Method Detail

getAttribute

public Attribute getAttribute()
Description copied from interface: MapEntry
Get the value attribute.

Specified by:
getAttribute in interface MapEntry
Returns:
The value attribute.

setAttribute

public void setAttribute(Attribute attr)
Set the attribute.

Specified by:
setAttribute in interface MapEntry
Parameters:
attr - The attribute.

getKey

public MapEntryKey getKey()
Description copied from interface: MapEntry
Get the primary key.

Specified by:
getKey in interface MapEntry
Returns:
The key.

setKey

public void setKey(MapEntryKey key)
Setter.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.