Index Topic Contents | |||
Previous Topic: NumberBvr Class Next Topic: Path2Bvr Class |
PairObject Class
public class PairObject extends java.lang.Object { // Constructor public PairObject(Object a, Object b); // Methods public Object getFirst(); public Object getSecond(); }Used in conjunction with the andEvent and the getPickEvent methods. The andEvent method creates a third event from two simultaneously occurring events. It returns a PairObject whose first member is the event data returned by the first event and whose second member is the data returned by the second event. The getPickEvent method returns a PairObject whose first member is the point of intersection and whose second member is a vector that is perpendicular to the surface. Note that, unlike arrays, a PairObject can contain two objects of different types.
PairObject Class
PairObject ConstructorConstructs a PairObject object. Note that this is not a behavior.
public PairObject(
Object a,
Object b
);Parameters
- a
- The first member of the PairObject.
- b
- The second member of the PairObject.
PairObject Methods
PairObject Class
getFirstReturns the first object of the PairObject.
public Object getFirst( );
Return Values
Returns the object that is the first member of the PairObject.
PairObject Class
getSecondReturns the second object of the PairObject.
public Object getSecond( );
Return Values
Returns the object that is the second member of the PairObject.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.