站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 3.0.6 API 英文版文档

FastMap.Entry - JBoss RULES 3.0.6 API 英文版文档


org.drools.util
Class FastMap.Entry

java.lang.Object
  extended by org.drools.util.FastMap.Entry
All Implemented Interfaces:
java.util.Map.Entry, FastCollection.Record
Enclosing class:
FastMap

public static final class FastMap.Entry
extends java.lang.Object
implements java.util.Map.Entry, FastCollection.Record

This class represents a FastMap entry.


Method Summary
 boolean equals(java.lang.Object that)
          Indicates if this entry is considered equals to the specified entry (using default value and key equality comparator to ensure symetry).
 java.lang.Object getKey()
          Returns the key for this entry.
 FastCollection.Record getNext()
          Returns the entry after this one.
 FastCollection.Record getPrevious()
          Returns the entry before this one.
 java.lang.Object getValue()
          Returns the value for this entry.
 int hashCode()
          Returns the hash code for this entry.
 java.lang.Object setValue(java.lang.Object value)
          Sets the value for this entry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNext

public final FastCollection.Record getNext()
Returns the entry after this one.

Specified by:
getNext in interface FastCollection.Record
Returns:
the next entry.

getPrevious

public final FastCollection.Record getPrevious()
Returns the entry before this one.

Specified by:
getPrevious in interface FastCollection.Record
Returns:
the previous entry.

getKey

public final java.lang.Object getKey()
Returns the key for this entry.

Specified by:
getKey in interface java.util.Map.Entry
Returns:
the entry key.

getValue

public final java.lang.Object getValue()
Returns the value for this entry.

Specified by:
getValue in interface java.util.Map.Entry
Returns:
the entry value.

setValue

public final java.lang.Object setValue(java.lang.Object value)
Sets the value for this entry.

Specified by:
setValue in interface java.util.Map.Entry
Parameters:
value - the new value.
Returns:
the previous value.

equals

public boolean equals(java.lang.Object that)
Indicates if this entry is considered equals to the specified entry (using default value and key equality comparator to ensure symetry).

Specified by:
equals in interface java.util.Map.Entry
Overrides:
equals in class java.lang.Object
Parameters:
that - the object to test for equality.
Returns:
true if both entry have equal keys and values. false otherwise.

hashCode

public int hashCode()
Returns the hash code for this entry.

Specified by:
hashCode in interface java.util.Map.Entry
Overrides:
hashCode in class java.lang.Object
Returns:
this entry hash code.