Package ptolemy.domains.metroII.kernel
Class MetroIIDEDirectorForPtides.Pair<F,S>
- java.lang.Object
-
- ptolemy.domains.metroII.kernel.MetroIIDEDirectorForPtides.Pair<F,S>
-
- Type Parameters:
F
- The first elementS
- The second element
- Enclosing class:
- MetroIIDEDirectorForPtides
public static class MetroIIDEDirectorForPtides.Pair<F,S> extends java.lang.Object
Pair is a data structure used to store two elements.- Author:
- Liangpeng Guo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F
getFirst()
Gets the first element in the pair.S
getSecond()
Gets the second element in the pair.void
setFirst(F first)
Sets the first element in the pair.void
setSecond(S second)
Sets the second element in the pair.
-
-
-
Method Detail
-
setFirst
public void setFirst(F first)
Sets the first element in the pair.- Parameters:
first
- the element to be set.- See Also:
getFirst()
-
setSecond
public void setSecond(S second)
Sets the second element in the pair.- Parameters:
second
- the element to be set.- See Also:
getSecond()
-
getFirst
public F getFirst()
Gets the first element in the pair.- Returns:
- the first element.
- See Also:
setFirst(F)
-
getSecond
public S getSecond()
Gets the second element in the pair.- Returns:
- the second element.
- See Also:
setSecond(S)
-
-