org.elasticsearch.common.unit
Class Percent
java.lang.Object
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)
|
Percent
public Percent(double value)
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.