Interface RepresentativeFraction


@Classifier(DATATYPE) @UML(identifier="MD_RepresentativeFraction", specification=ISO_19115) public interface RepresentativeFraction
A scale defined as the inverse of a denominator. This is derived from ISO 19103 Scale where denominator = 1 / scale.

Implementations are encouraged to extend Number in a manner equivalent to:

class MyFraction extends Number implements RepresentativeFraction {
    public double doubleValue() {
        return 1.0 / (double) denominator;
    }
    public float floatValue() {
        return 1.0f / (float) denominator;
    }
    public long longValue() {
        return 1 / denominator;       // Result is zero except for denominator = [0,1].
    }
}
Since:
2.1
See Also: