java.lang.Object
dev.qilletni.api.lang.types.weights.WeightUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublevalidateWeights(WeightsType weights) Checks if the weights are valid, meaning they don't exceed a total of 100%
-
Constructor Details
-
WeightUtils
public WeightUtils()
-
-
Method Details
-
validateWeights
Checks if the weights are valid, meaning they don't exceed a total of 100%- Parameters:
weights- The weights to validate- Returns:
- The total weight percent
-