
org.unidal.tuple.Quad Maven / Gradle / Ivy
The newest version!
package org.unidal.tuple;
/**
* Tuple to hold four elements: east, south, west and north.
*
* @param
* east
* @param
* south
* @param
* west
* @param
* north
*/
public class Quad implements Tuple {
private volatile E m_east;
private volatile S m_south;
private volatile W m_west;
private volatile N m_north;
public Quad() {
}
public Quad(E east, S south, W west, N north) {
m_east = east;
m_south = south;
m_west = west;
m_north = north;
}
public static Quad from(E east, S south, W west, N north) {
return new Quad(east, south, west, north);
}
@Override
@SuppressWarnings("unchecked")
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof Quad) {
Quad
© 2015 - 2025 Weber Informatics LLC | Privacy Policy