io.permazen.tuple.AbstractHas2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-util Show documentation
Show all versions of permazen-util Show documentation
Common utility classes used by Permazen.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.tuple;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
class AbstractHas2 extends AbstractHas1 implements Has2 {
final V2 v2;
protected AbstractHas2(V1 v1, V2 v2) {
super(v1);
this.v2 = v2;
}
@Override
public V2 getValue2() {
return this.v2;
}
@Override
public int getSize() {
return 2;
}
@Override
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy