
org.netxms.base.Pair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netxms-base Show documentation
Show all versions of netxms-base Show documentation
NetXMS base classes and commonly used utility code
The newest version!
package org.netxms.base;
/**
* Class pair
*
* @param first element class
* @param second element class
*/
public class Pair
{
/**
* The first element of this Pair
*/
private U first;
/**
* The second element of this Pair
*/
private V second;
/**
* Constructs a new Pair
with the given values.
*
* @param first the first element
* @param second the second element
*/
public Pair(U first, V second)
{
this.first = first;
this.second = second;
}
/**
* @return the first
*/
public U getFirst()
{
return first;
}
/**
* @param first the first to set
*/
public void setFirst(U first)
{
this.first = first;
}
/**
* @return the second
*/
public V getSecond()
{
return second;
}
/**
* @param second the second to set
*/
public void setSecond(V second)
{
this.second = second;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy