- java.lang.Object
-
- jp.cafebabe.birthmarks.entities.Percentage
-
- All Implemented Interfaces:
Comparable<Percentage>
public class Percentage extends Object implements Comparable<Percentage>
-
-
Constructor Summary
Constructors Constructor Description Percentage(long numerator, long denominator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Percentage other)
String
toString()
String
toString(String formatter)
double
value()
-
-
-
Method Detail
-
value
public double value()
-
compareTo
public int compareTo(Percentage other)
- Specified by:
compareTo
in interfaceComparable<Percentage>
-
-