Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Utils.Pair Class Reference

Immutable pair of two objects. More...

Inheritance diagram for Dragengine.Utils.Pair:

Public Member Functions

bool equals (Object other)
 Pair equals object.
Object getFirst ()
 First object.
Object getSecond ()
 Second object.
int hashCode ()
 Hash code for use as dictionary keys.
Pair new (Object first, Object second)
 Create pair.
Pair swap ()
 Pair with first and second object swapped.
String toString ()
 String representation.

Detailed Description

Immutable pair of two objects.

Member Function Documentation

◆ equals()

bool Dragengine.Utils.Pair.equals ( Object other)

Pair equals object.

Implements Object.equals(Object).

Returns
true if other is of type Pair and first and second object equals.

References toString().

Referenced by hashCode().

◆ getFirst()

Object Dragengine.Utils.Pair.getFirst ( )

First object.

Referenced by getSecond().

◆ getSecond()

Object Dragengine.Utils.Pair.getSecond ( )

Second object.

References getFirst().

Referenced by swap().

◆ hashCode()

int Dragengine.Utils.Pair.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

References equals(), and hashCode().

Referenced by hashCode().

◆ new()

Pair Dragengine.Utils.Pair.new ( Object first,
Object second )

Create pair.

References new().

Referenced by new(), and toString().

◆ swap()

Pair Dragengine.Utils.Pair.swap ( )

Pair with first and second object swapped.

References getSecond().

Referenced by toString().

◆ toString()

String Dragengine.Utils.Pair.toString ( )

String representation.

References new(), and swap().

Referenced by equals().


The documentation for this class was generated from the following file: