mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CE-1955 change type-argument to be extends-Serializable
This commit is contained in:
@ -22,11 +22,14 @@
|
|||||||
package com.kingsrook.qqq.backend.core.model.metadata.possiblevalues;
|
package com.kingsrook.qqq.backend.core.model.metadata.possiblevalues;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Interface to be implemented by enums which can be used as a PossibleValueSource.
|
** Interface to be implemented by enums which can be used as a PossibleValueSource.
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public interface PossibleValueEnum<T>
|
public interface PossibleValueEnum<T extends Serializable>
|
||||||
{
|
{
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
|
@ -22,12 +22,15 @@
|
|||||||
package com.kingsrook.qqq.backend.core.model.metadata.possiblevalues;
|
package com.kingsrook.qqq.backend.core.model.metadata.possiblevalues;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** An actual possible value - an id and label.
|
** An actual possible value - an id and label.
|
||||||
**
|
**
|
||||||
** Type parameter `T` is the type of the id (often Integer, maybe String)
|
** Type parameter `T` is the type of the id (often Integer, maybe String)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public class QPossibleValue<T>
|
public class QPossibleValue<T extends Serializable>
|
||||||
{
|
{
|
||||||
private final T id;
|
private final T id;
|
||||||
private final String label;
|
private final String label;
|
||||||
|
Reference in New Issue
Block a user