@Override
    public double getWeight() {
        return this.weight;
    }
Represents a {@link Weighted} object.

@param <T> the object type
helper/src/main/java/me/lucko/helper/random/WeightedObject.java