Interface FractionOrBuilder (2.9.1)

public interface FractionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDenominator()

public abstract long getDenominator()

The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.

int64 denominator = 2;

Returns
TypeDescription
long

The denominator.

getNumerator()

public abstract long getNumerator()

The numerator in the fraction, e.g. 2 in 2/3.

int64 numerator = 1;

Returns
TypeDescription
long

The numerator.