Interface WeightsObj<K,T>
- Type Parameters:
K- the elements (vertices/edges) typeT- the weights type
- All Superinterfaces:
Weights<K,T>
- All Known Subinterfaces:
IWeightsObj<T>
Specific weights of
Object.- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptionGet the default weight of this weights container.default TDeprecated.Get the weight associated with the given element.default TDeprecated.Please useget(Object)instead to avoid un/boxing.voidSet the weight associated with the given element.default voidDeprecated.Please useset(Object, Object)instead to avoid un/boxing.
-
Method Details
-
get
-
getAsObj
Deprecated.Please useget(Object)instead to avoid un/boxing.Get the weight associated with the given element.This method return the weight as an object, and should not be used when its known what type the weights are.
-
set
-
setAsObj
Deprecated.Please useset(Object, Object)instead to avoid un/boxing.Set the weight associated with the given element.This method accept the weight as an object, and should not be used when its known what type the weights are.
-
defaultWeight
T defaultWeight()Get the default weight of this weights container.The default weight is the weight associated with all elements that were not explicitly set using
set(Object, Object).- Returns:
- the default weight of this weights container.
-
defaultWeightAsObj
Deprecated.Please usedefaultWeight()instead to avoid un/boxing.Get the default weight of this weights container.The default weight is the weight associated with all ids that were not explicitly set. This method return the default weight as an object, and should not be used when its known what type the weights are.
- Specified by:
defaultWeightAsObjin interfaceWeights<K,T> - Returns:
- the default weight of this weights container
-
defaultWeight()instead to avoid un/boxing.