Interface FractionOrBuilder (2.48.0)

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
Type Description
long

The denominator.

getNumerator()

public abstract long getNumerator()

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

int64 numerator = 1;

Returns
Type Description
long

The numerator.