eu.scape_project.watch.domain
Class Entry

java.lang.Object
  extended by eu.scape_project.watch.domain.Entry

public class Entry
extends Object

A key-value pair entry holder.

Author:
Luis Faria

Constructor Summary
Entry()
          Create a new empty entry.
Entry(String key, String value)
          Create a new entry.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
           
 String getKey()
           
 String getValue()
           
 int hashCode()
           
 void setKey(String key)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entry

public Entry()
Create a new empty entry.


Entry

public Entry(String key,
             String value)
Create a new entry.

Parameters:
key - the entry key
value - the entry value
Method Detail

getKey

public String getKey()

setKey

public void setKey(String key)

getValue

public String getValue()

setValue

public void setValue(String value)

getId

public String getId()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.