source code formatting.
[utils] / support / general / src / main / java / org / wamblee / general / Pair.java
index 2d90387fb3bc8e642522e3f91e2daaea7c324c7a..e041729bea3d38b72b4fc4a1150f7bf937d645df 100644 (file)
@@ -1,15 +1,12 @@
-
-
-
 /*
  * Copyright 2005 the original author or authors.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  */
 package org.wamblee.general;
 
+
 /**
  * Represents a pair of objects. This is inspired on the C++ Standard Template
  * Library pair template.
- * 
+ *
  * @param <T>
  *            Type of the first object.
  * @param <U>
@@ -30,51 +28,48 @@ package org.wamblee.general;
  * @author Erik Brakkee
  */
 public class Pair<T, U> {
-
-    private T _t;
-
-    private U _u;
+    private T t;
+    private U u;
 
     /**
      * Constructs the pair.
-     * 
+     *
      * @param aT
      *            First object.
      * @param aU
      *            Second object.
      */
     public Pair(T aT, U aU) {
-        _t = aT;
-        _u = aU;
+        t = aT;
+        u = aU;
     }
 
     /**
      * Copies a pair.
-     * 
+     *
      * @param aPair
      *            Pair to copy.
      */
     public Pair(Pair<T, U> aPair) {
-        _t = aPair._t;
-        _u = aPair._u;
+        t = aPair.t;
+        u = aPair.u;
     }
 
     /**
      * Gets the first object of the pair.
-     * 
+     *
      * @return First object.
      */
     public T getFirst() {
-        return _t;
+        return t;
     }
 
     /**
      * Gets the second object of the pair.
-     * 
+     *
      * @return Second object.
      */
     public U getSecond() {
-        return _u;
+        return u;
     }
-
 }