Add support 3 new types of bank accounts

This commit is contained in:
Manfred Karrer 2016-02-29 23:57:31 +01:00
parent b511267340
commit 31fb0fafa4
40 changed files with 1273 additions and 378 deletions

View file

@ -48,7 +48,7 @@ public class Log {
rollingPolicy.start();
triggeringPolicy = new SizeBasedTriggeringPolicy();
triggeringPolicy.setMaxFileSize("10MB");
triggeringPolicy.setMaxFileSize("1MB");
triggeringPolicy.start();
PatternLayoutEncoder encoder = new PatternLayoutEncoder();
@ -63,7 +63,7 @@ public class Log {
logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
//TODO for now use always trace
logbackLogger.setLevel(useDetailedLogging ? Level.INFO : Level.INFO);
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.INFO);
// logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.DEBUG);
logbackLogger.addAppender(appender);
}

View file

@ -0,0 +1,57 @@
/*
* This file is part of Bitsquare.
*
* Bitsquare is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
*/
package io.bitsquare.common.util;
import java.io.Serializable;
public class Tuple4<A, B, C, D> implements Serializable {
final public A first;
final public B second;
final public C third;
final public D forth;
public Tuple4(A first, B second, C third, D forth) {
this.first = first;
this.second = second;
this.third = third;
this.forth = forth;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Tuple4)) return false;
Tuple4<?, ?, ?, ?> tuple4 = (Tuple4<?, ?, ?, ?>) o;
if (first != null ? !first.equals(tuple4.first) : tuple4.first != null) return false;
if (second != null ? !second.equals(tuple4.second) : tuple4.second != null) return false;
if (third != null ? !third.equals(tuple4.third) : tuple4.third != null) return false;
return !(forth != null ? !forth.equals(tuple4.forth) : tuple4.forth != null);
}
@Override
public int hashCode() {
int result = first != null ? first.hashCode() : 0;
result = 31 * result + (second != null ? second.hashCode() : 0);
result = 31 * result + (third != null ? third.hashCode() : 0);
result = 31 * result + (forth != null ? forth.hashCode() : 0);
return result;
}
}