All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.netxms.base.Pair Maven / Gradle / Ivy

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