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

org.jvnet.annox.model.annotation.value.XAnnotationValue Maven / Gradle / Ivy

The newest version!
package org.jvnet.annox.model.annotation.value;


public abstract class XAnnotationValue {

	public abstract T getValue();

	protected abstract Object getInternalValue();

	public final Object getResult() {
		return getValue();
	}

	public abstract 

P accept(XAnnotationValueVisitor

visitor); @Override public final String toString() { return getInternalValue().toString(); } @Override public final int hashCode() { int hash = 0; final Object value = getInternalValue(); hash = hash * 37 + value.hashCode(); return hash; } @Override public final boolean equals(Object obj) { if (!(obj instanceof XAnnotationValue)) { return false; } if (this == obj) { return true; } final XAnnotationValue other = (XAnnotationValue) obj; return getInternalValue().equals(other.getInternalValue()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy