io.apicurio.datamodels.models.union.UnionValueImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicurio-data-models Show documentation
Show all versions of apicurio-data-models Show documentation
Open Source API Design Studio
The newest version!
package io.apicurio.datamodels.models.union;
import io.apicurio.datamodels.models.visitors.Visitor;
/**
* Base class for all union value implementations.
*
* @author [email protected]
*/
public abstract class UnionValueImpl implements UnionValue, Union {
private T value;
public UnionValueImpl() {
}
public UnionValueImpl(T value) {
this.value = value;
}
@Override
public Object unionValue() {
return value;
}
@Override
public T getValue() {
return value;
}
@Override
public void setValue(T value) {
this.value = value;
}
@Override
public boolean isList() {
return false;
}
@Override
public boolean isMap() {
return false;
}
@Override
public boolean isEntity() {
return false;
}
@Override
public boolean isEntityList() {
return false;
}
@Override
public boolean isEntityMap() {
return false;
}
@Override
public void accept(Visitor visitor) {
}
}