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

io.apicurio.datamodels.models.union.SchemaListUnionValueImpl Maven / Gradle / Ivy

package io.apicurio.datamodels.models.union;

import io.apicurio.datamodels.models.Schema;
import java.util.List;

public class SchemaListUnionValueImpl extends EntityListUnionValueImpl implements SchemaListUnionValue {

	public SchemaListUnionValueImpl() {
		super();
	}

	public SchemaListUnionValueImpl(List value) {
		super(value);
	}

	@Override
	public boolean isSchema() {
		return false;
	}

	@Override
	public Schema asSchema() {
		throw new ClassCastException();
	}

	@Override
	public boolean isSchemaList() {
		return true;
	}

	@Override
	public List asSchemaList() {
		return getValue();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy