## 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 Constructor
- PairObject Methods

###

PairObject Constructor

PairObject Class

Constructs 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

getFirst

getSecond

####

getFirst

PairObject Class

Returns the first object of the PairObject.

public Object getFirst( );

##### Return Values

Returns the object that is the first member of the PairObject.

####

getSecond

PairObject Class

Returns the second object of the PairObject.

public Object getSecond( );

##### Return Values

Returns the object that is the second member of the PairObject.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.