com.liferay.portal.odata.entity.IdEntityField Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.portal.odata.entity;
import java.util.Locale;
import java.util.function.Function;
/**
* Models an date entity field. A Entity field with a type {@code
* EntityField.Type.ID}
*
* @author Cristina González
* @review
*/
public class IdEntityField extends EntityField {
/**
* Creates a new {@code IdEntityField} with a {@code Function} to convert
* the entity field's name to a filterable/sortable field name for a locale.
*
* @param name the entity field's name
* @param filterableAndSortableFieldNameFunction the {@code Function} that
* converts the entity field's name to a filterable/sortable field
* name for a locale
* @param filterableFieldValueFunction the {@code Function} that converts
* the entity field's value to a filterable field value
* @review
*/
public IdEntityField(
String name,
Function filterableAndSortableFieldNameFunction,
Function