com.netflix.curator.framework.recipes.cache
Class ChildData

java.lang.Object
  extended by com.netflix.curator.framework.recipes.cache.ChildData
All Implemented Interfaces:
java.lang.Comparable<ChildData>

public class ChildData
extends java.lang.Object
implements java.lang.Comparable<ChildData>


Method Summary
 int compareTo(ChildData rhs)
           
 boolean equals(java.lang.Object o)
           
 byte[] getData()
          Returns the node data for this child when the cache mode is set to cache data.
 java.lang.String getPath()
          Returns the full path of the this child
 org.apache.zookeeper.data.Stat getStat()
          Returns the stat data for this child
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(ChildData rhs)
Specified by:
compareTo in interface java.lang.Comparable<ChildData>

equals

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

hashCode

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

getPath

public java.lang.String getPath()
Returns the full path of the this child

Returns:
full path

getStat

public org.apache.zookeeper.data.Stat getStat()
Returns the stat data for this child

Returns:
stat or null

getData

public byte[] getData()

Returns the node data for this child when the cache mode is set to cache data.

NOTE: the byte array returned is the raw reference of this instance's field. If you change the values in the array any other callers to this method will see the change.

Returns:
node data or null

toString

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