X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fgeneral%2FPair.java;h=e041729bea3d38b72b4fc4a1150f7bf937d645df;hb=f4d446b84fa1a38ed83cd157f79fdb8233822145;hp=2d90387fb3bc8e642522e3f91e2daaea7c324c7a;hpb=dc05aae40ab88d4224d37f53c35d516107a3b031;p=utils diff --git a/support/general/src/main/java/org/wamblee/general/Pair.java b/support/general/src/main/java/org/wamblee/general/Pair.java index 2d90387f..e041729b 100644 --- a/support/general/src/main/java/org/wamblee/general/Pair.java +++ b/support/general/src/main/java/org/wamblee/general/Pair.java @@ -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. @@ -18,10 +15,11 @@ */ package org.wamblee.general; + /** * Represents a pair of objects. This is inspired on the C++ Standard Template * Library pair template. - * + * * @param * Type of the first object. * @param @@ -30,51 +28,48 @@ package org.wamblee.general; * @author Erik Brakkee */ public class Pair { - - 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 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; } - }