Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.util.Pair< A, B > Class Template Reference

Public Member Functions

 Pair ()
 
 Pair (A one, B two)
 
int hashCode ()
 
boolean equals (Object obj)
 

Public Attributes

A one
 
B two
 

Detailed Description

Simple container class for a pair of items. Has valid hashCode() and equals() methods.

A pair is equal to another pair if each of the item .equals() their counterpart.

Author
Alexander Mosolov

Definition at line 12 of file Pair.java.

Constructor & Destructor Documentation

◆ Pair() [1/2]

Definition at line 16 of file Pair.java.

◆ Pair() [2/2]

com.fs.starfarer.api.util.Pair< A, B >.Pair ( A  one,
B  two 
)

Definition at line 18 of file Pair.java.

Member Function Documentation

◆ equals()

Definition at line 34 of file Pair.java.

◆ hashCode()

Definition at line 25 of file Pair.java.

Member Data Documentation

◆ one

Definition at line 13 of file Pair.java.

◆ two

Definition at line 14 of file Pair.java.


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