KVPairData

public class KVPairData implements Data

The KVPairData is a simple data structures for storing key-valued style data. It is implemented based on java.util.Map. You can define the max capacity through the constructor so that the internal data does not need to rehash when there is not enough room. Creation Date: 21/3/2007

Author:Twinsen Tsang

Fields

props

protected Map props

The KVPair interval data.

Constructors

KVPairData

public KVPairData(int maxCapacity)

Explicit Constructor.

Parameters:
  • maxCapacity – The maximum Key value pair that the data can hold.

Methods

getProperties

public Map getProperties()
Returns:the properties set for this MessageStatusRequestData.

setProperties

public void setProperties(Map hm)

Set the message status request properties and overwrite the existing one. This operation success only when the size of hm is smaller than it’s maxCapacity defined in the constructor.

Parameters:
  • hm – The new properties set.

toString

public String toString()

toString method. Simple Key-Iteration