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

com.sap.cds.reflect.impl.CdsEnumeralImpl Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
/*******************************************************************
 * © 2023 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.reflect.impl;

import java.util.List;

import com.sap.cds.reflect.CdsAnnotation;
import com.sap.cds.reflect.CdsEnumType;

public class CdsEnumeralImpl extends CdsAnnotatableImpl implements CdsEnumType.Enumeral {

	private final String name;
	private final T value;

	public CdsEnumeralImpl(List> annotations, String name, T value) {
		super(annotations, null);
		this.name = name;
		this.value = value;
	}

	@Override
	public T value() {
		return value;
	}

	public String name() {
		return name;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy