Package com.jgalgo.graph
Interface IWeightsChar
-
public interface IWeightsChar extends IWeights<Character>, WeightsChar<Integer>
Specific weights ofcharfor int graphs.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description charget(int element)Get the weight associated with the given element.default charget(Integer element)Deprecated.default CharactergetAsObj(int element)Deprecated.default CharactergetAsObj(Integer element)Deprecated.voidset(int element, char weight)Set the weight associated with the given element.default voidset(Integer element, char weight)Deprecated.default voidsetAsObj(int element, Character weight)Deprecated.default voidsetAsObj(Integer element, Character weight)Deprecated.-
Methods inherited from interface com.jgalgo.graph.WeightsChar
defaultWeight, defaultWeightAsObj
-
-
-
-
Method Detail
-
get
char 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 char get(Integer element)
Deprecated.Description copied from interface:WeightsCharGet the weight associated with the given element.- Specified by:
getin interfaceWeightsChar<Integer>- Parameters:
element- an element (edge/vertex).- Returns:
- the weight associated with the given element.
-
getAsObj
@Deprecated default Character getAsObj(int element)
Deprecated.Description copied from interface:IWeightsGet the weight associated with the given id.
-
set
void set(int element, char 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, char weight)
Deprecated.Description copied from interface:WeightsCharSet the weight associated with the given element.- Specified by:
setin interfaceWeightsChar<Integer>- Parameters:
element- an element (edge/vertex).weight- new weight that will be associated with the given element
-
setAsObj
@Deprecated default void setAsObj(int element, Character weight)
Deprecated.Description copied from interface:IWeightsSet the weight associated with the given id.
-
getAsObj
@Deprecated default Character 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, Character 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.
-
-