public final class Percentage implements Comparable


Represents a value as a percentage, not a fraction - for example 100%, 89.62%, etc.

Summary

Public constructors

Percentage(double value)

Public methods

int
boolean
equals(Object other)
final double
int
@NonNull String

Public constructors

Percentage

Added in 1.1.0-alpha10
public Percentage(double value)

Public methods

compareTo

Added in 1.1.0-alpha10
public int compareTo(@NonNull Percentage other)

equals

public boolean equals(Object other)

getValue

Added in 1.1.0-alpha10
public final double getValue()

hashCode

public int hashCode()

toString

public @NonNull String toString()