Class ChildData
- java.lang.Object
-
- org.apache.curator.framework.recipes.cache.ChildData
-
-
Constructor Summary
Constructors Constructor Description ChildData(java.lang.String path, org.apache.zookeeper.data.Stat stat, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ChildData rhs)Note: this class has a natural ordering that is inconsistent with equals.booleanequals(java.lang.Object o)byte[]getData()Returns the node data for this child when the cache mode is set to cache data.java.lang.StringgetPath()Returns the full path of the this childorg.apache.zookeeper.data.StatgetStat()Returns the stat data for this childinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ChildData rhs)
Note: this class has a natural ordering that is inconsistent with equals.- Specified by:
compareToin interfacejava.lang.Comparable<ChildData>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.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:
toStringin classjava.lang.Object
-
-