org.elasticsearch.common.unit
Class Percent

java.lang.Object
  extended by org.elasticsearch.common.unit.Percent
All Implemented Interfaces:
Serializable, Streamable

public class Percent
extends Object
implements Streamable, Serializable

See Also:
Serialized Form

Constructor Summary
Percent(double value)
           
 
Method Summary
static String format(double value)
           
 void readFrom(StreamInput in)
           
 String toString()
           
 double value()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Percent

public Percent(double value)
Method Detail

value

public double value()

toString

public String toString()
Overrides:
toString in class Object

format

public static String format(double value)

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.