Package unifeat.gui.menu
Class DiagramPanel.TupleValues
java.lang.Object
unifeat.gui.menu.DiagramPanel.TupleValues
- Enclosing class:
DiagramPanel
This java class is used to create a data structure for pair
(key, val)
in which key
and val
are
Point data type.-
Constructor Summary
ConstructorDescriptionTupleValues
(Point key, Point val) Constructs and initializes a TupleValues with the specified(key, val)
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether or not two TupleValues are equal in their keys.get
(ArrayList<DiagramPanel.TupleValues> list) Returns the value to which the specified key is saved in the list, or null if this list contains no element for the key.getKey()
Returns the key of this TupleValues in Point data type.getVal()
Returns the val of this TupleValues in Point data type.
-
Constructor Details
-
TupleValues
Constructs and initializes a TupleValues with the specified(key, val)
.- Parameters:
key
- the key of the newly constructedTupleValues
val
- the val of the newly constructedTupleValues
-
-
Method Details
-
getKey
Returns the key of this TupleValues in Point data type.- Returns:
- the key of this TupleValues.
-
getVal
Returns the val of this TupleValues in Point data type.- Returns:
- the val of this TupleValues.
-
get
Returns the value to which the specified key is saved in the list, or null if this list contains no element for the key.More formally, if this list contains a mapping from a key k to a value v, then this method returns v; otherwise it returns null.
- Parameters:
list
- the array ofTupleValues
- Returns:
- the value to which the specified key is saved in the list, or null if the key is not exist in the list
-