@@ -0,0 +1,2161 @@
+/*%0A * Copyright 2016 Pelayo Jose Lluna Gonzalez.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.pelayolluna.utils;%0A%0A/**%0A *%0A * @author Pelayo Jose Lluna Gonzalez%0A * @param %3CM%3E%0A *            market%0A * @param %3CV%3E%0A *            volume%0A */%0Apublic final class PairMarketVolume%3CM, V%3E %7B%0A%0A%09/**%0A%09 * Market values.%0A%09 */%0A%09private M market;%0A%09/**%0A%09 * Volume values.%0A%09 */%0A%09private V volume;%0A%0A%09/**%0A%09 * Pair constructor.%0A%09 *%0A%09 * @param market%0A%09 * @param volume%0A%09 */%0A%09public PairMarketVolume(M market, V volume) %7B%0A%09%09this.market = market;%0A%09%09this.volume = volume;%0A%09%7D%0A%0A%09/**%0A%09 * @return the market%0A%09 */%0A%09public M getMarket() %7B%0A%09%09return market;%0A%09%7D%0A%0A%09/**%0A%09 * @param market%0A%09 *            the market to set%0A%09 */%0A%09public void setMarket(M market) %7B%0A%09%09this.market = market;%0A%09%7D%0A%0A%09/**%0A%09 * @return the volume%0A%09 */%0A%09public V getVolume() %7B%0A%09%09return volume;%0A%09%7D%0A%0A%09/**%0A%09 * @param volume%0A%09 *            the volume to set%0A%09 */%0A%09public void setVolume(V volume) %7B%0A%09%09this.volume = volume;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09int constant = 7 * 21;%0A%09%09int hashCode = this.getMarket().hashCode() * this.getVolume().hashCode();%0A%09%09hashCode = this.getVolume() != null ? (constant * hashCode) : 0;%0A%09%09return hashCode;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(final Object obj) %7B%0A%09%09if (!(obj instanceof PairMarketVolume)) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09PairMarketVolume%3C?, ?%3E obj2 = (PairMarketVolume%3C?, ?%3E) obj;%0A%09%09return this.market.equals(obj2.getMarket()) && this.volume.equals(obj2.getVolume());%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder sb = new StringBuilder();%0A%09%09sb.append(this.getMarket() + %22 - %22);%0A%09%09sb.append(this.getVolume());%0A%0A%09%09return sb.toString();%0A%09%7D%0A%7D%0A

Update PairMarketVolume.java