| コンストラクタと説明 | 
|---|
| Counter() | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| boolean | contentEquals(Counters.Counter counter)非推奨です。   | 
| boolean | equals(Object genericRight) | 
| long | getCounter() | 
| String | getDisplayName()Get the display name of the counter. | 
| String | getName() | 
| Counter | getUnderlyingCounter() | 
| long | getValue()What is the current value of this counter? | 
| int | hashCode() | 
| void | increment(long incr)Increment this counter by the given value | 
| String | makeEscapedCompactString()Returns the compact stringified version of the counter in the format
 [(actual-name)(display-name)(value)] | 
| void | readFields(DataInput in)Deserialize the fields of this object from  in. | 
| void | setDisplayName(String displayName)Set the display name of the counter | 
| void | setValue(long value)Set this counter by the given value | 
| void | write(DataOutput out)Serialize the fields of this object to  out. | 
public Counter()
public void setDisplayName(String displayName)
CountersetDisplayName インタフェース内 CounterdisplayName - of the counterpublic String getDisplayName()
CountergetDisplayName インタフェース内 Counterpublic long getValue()
Counterpublic void setValue(long value)
Counterpublic void increment(long incr)
Counterpublic void write(DataOutput out) throws IOException
Writableout.write インタフェース内 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields インタフェース内 Writablein - DataInput to deseriablize this object from.IOExceptionpublic String makeEscapedCompactString()
@Deprecated public boolean contentEquals(Counters.Counter counter)
counter - to comparepublic long getCounter()
public Counter getUnderlyingCounter()
Copyright © 2016 Apache Software Foundation. All rights reserved.