CE-1955 change type-argument to be extends-Serializable

This commit is contained in:
2024-12-26 19:12:01 -06:00
parent 7f67eda2e3
commit f57df2be86
2 changed files with 8 additions and 2 deletions

View File

@ -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>
{ {
/******************************************************************************* /*******************************************************************************
** **

View File

@ -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;