Drag[en]gine Script Module DragonScript  1.23
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. More...
 
Object getFirst ()
 First object. More...
 
Object getSecond ()
 Second object. More...
 
int hashCode ()
 Hash code for use as dictionary keys. More...
 
Pair new (Object first, Object second)
 Create pair. More...
 
Pair swap ()
 Pair with first and second object swapped. More...
 
String toString ()
 String representation. More...
 

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.

◆ getFirst()

Object Dragengine.Utils.Pair.getFirst ( )

First object.

◆ getSecond()

Object Dragengine.Utils.Pair.getSecond ( )

Second object.

◆ hashCode()

int Dragengine.Utils.Pair.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

◆ new()

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

Create pair.

◆ swap()

Pair Dragengine.Utils.Pair.swap ( )

Pair with first and second object swapped.

◆ toString()

String Dragengine.Utils.Pair.toString ( )

String representation.


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