Package com.jgalgo.graph
Interface IWeightsObj<T>
-
- All Superinterfaces:
IWeights<T>,Weights<Integer,T>,WeightsObj<Integer,T>
public interface IWeightsObj<T> extends IWeights<T>, WeightsObj<Integer,T>
Specific weights ofObjectfor int graphs.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Tget(int element)Get the weight associated with the given element.default Tget(Integer element)Deprecated.default TgetAsObj(int element)Deprecated.default TgetAsObj(Integer element)Deprecated.voidset(int element, T weight)Set the weight associated with the given element.default voidset(Integer element, T weight)Deprecated.default voidsetAsObj(int element, T weight)Deprecated.default voidsetAsObj(Integer element, T weight)Deprecated.-
Methods inherited from interface com.jgalgo.graph.WeightsObj
defaultWeight, defaultWeightAsObj
-
-
-
-
Method Detail
-
get
T get(int element)
Get the weight associated with the given element.- Parameters:
element- an element (edge/vertex.)- Returns:
- the weight associated with the given element.
-
get
@Deprecated default T get(Integer element)
Deprecated.Description copied from interface:WeightsObjGet the weight associated with the given element.- Specified by:
getin interfaceWeightsObj<Integer,T>- Parameters:
element- an element (edge/vertex).- Returns:
- the weight associated with the given element.
-
getAsObj
@Deprecated default T getAsObj(int element)
Deprecated.Description copied from interface:IWeightsGet the weight associated with the given id.
-
set
void set(int element, T weight)Set the weight associated with the given element.- Parameters:
element- an element (edge/vertex)weight- new weight that will be associated with the given element
-
set
@Deprecated default void set(Integer element, T weight)
Deprecated.Description copied from interface:WeightsObjSet the weight associated with the given element.- Specified by:
setin interfaceWeightsObj<Integer,T>- Parameters:
element- an element (edge/vertex).weight- new weight that will be associated with the given element
-
setAsObj
@Deprecated default void setAsObj(int element, T weight)
Deprecated.Description copied from interface:IWeightsSet the weight associated with the given id.
-
getAsObj
@Deprecated default T getAsObj(Integer element)
Deprecated.Description copied from interface:WeightsGet 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.
-
setAsObj
@Deprecated default void setAsObj(Integer element, T weight)
Deprecated.Description copied from interface:WeightsSet 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.
-
-