-
- All Known Implementing Classes:
AnimatedLength
,Length
public interface LengthValue
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static @Nullable LengthValue
derive(@Nullable LengthValue current, @Nullable LengthValue other)
boolean
isConstantlyNonNegative()
boolean
isConstantlyZero()
float
resolve(@NotNull MeasureContext context)
Resolve the length to its effective value.
-
-
-
Method Detail
-
derive
@Nullable static @Nullable LengthValue derive(@Nullable @Nullable LengthValue current, @Nullable @Nullable LengthValue other)
-
isConstantlyZero
boolean isConstantlyZero()
-
isConstantlyNonNegative
boolean isConstantlyNonNegative()
-
resolve
float resolve(@NotNull @NotNull MeasureContext context)
Resolve the length to its effective value.- Parameters:
context
- the measuring context.- Returns:
- the resolved size.
-
-