iText 9.4.0 API
iText.Commons.Datastructures.Tuple2< T1, T2 > Class Template Reference

Simple tuple container that holds two elements. More...

Public Member Functions

  Tuple2 (T1 first, T2 second)
  Creates a new instance of Tuple2 with given elements. More...
 
virtual T1  GetFirst ()
  Get the first element. More...
 
virtual T2  GetSecond ()
  Get the second element. More...
 
override bool  Equals (Object obj)
 
override int  GetHashCode ()
 
override String  ToString ()
 

Detailed Description

Simple tuple container that holds two elements.

Template Parameters
T1 type of the first element
T2 type of the second element

Constructor & Destructor Documentation

◆ Tuple2()

iText.Commons.Datastructures.Tuple2< T1, T2 >.Tuple2 ( T1  first,
T2  second 
)
inline

Creates a new instance of Tuple2 with given elements.

Parameters
first the first element
second the second element

Member Function Documentation

◆ Equals()

override bool iText.Commons.Datastructures.Tuple2< T1, T2 >.Equals ( Object  obj )
inline

Note, that in case current class is overridden, equals should also be overridden.

Parameters
obj
Returns

◆ GetFirst()

virtual T1 iText.Commons.Datastructures.Tuple2< T1, T2 >.GetFirst ( )
inlinevirtual

Get the first element.

Returns
the first element

◆ GetHashCode()

override int iText.Commons.Datastructures.Tuple2< T1, T2 >.GetHashCode ( )
inline

Returns

◆ GetSecond()

virtual T2 iText.Commons.Datastructures.Tuple2< T1, T2 >.GetSecond ( )
inlinevirtual

Get the second element.

Returns
the second element

◆ ToString()

override String iText.Commons.Datastructures.Tuple2< T1, T2 >.ToString ( )
inline