All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.queryspec.AbstractPathSpec Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
package io.katharsis.queryspec;

import java.util.List;

public class AbstractPathSpec {

	protected List attributePath;

	protected AbstractPathSpec() {
	}

	protected AbstractPathSpec(List attributePath) {
		this.attributePath = attributePath;
	}

	public List getAttributePath() {
		return attributePath;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((attributePath == null) ? 0 : attributePath.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AbstractPathSpec other = (AbstractPathSpec) obj;
		if (attributePath == null) {
			if (other.attributePath != null)
				return false;
		} else if (!attributePath.equals(other.attributePath))
			return false;
		return true;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy