org.terracotta.management.stats
Class Sample<V extends Serializable>

java.lang.Object
  extended by org.terracotta.management.stats.Sample<V>
All Implemented Interfaces:
Serializable

public final class Sample<V extends Serializable>
extends Object
implements Serializable

Author:
Ludovic Orban, Mathieu Carbou
See Also:
Serialized Form

Constructor Summary
Sample(long timestamp, V value)
           
 
Method Summary
 boolean equals(Object o)
           
 long getTimestamp()
           
 V getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sample

public Sample(long timestamp,
              V value)
Method Detail

getTimestamp

public long getTimestamp()

getValue

public V getValue()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016. All Rights Reserved.