E - the element typepublic interface Weigher<E>
| Modifier and Type | Method and Description |
|---|---|
double |
weigh(E element)
Calculates and returns the weight of the element.
|
@Nonnegative double weigh(E element)
The weight value should be non-negative.
element - the element to calculate the weight forCopyright © 2022. All rights reserved.