2021-09-28 12:06:51 +02:00
|
|
|
package speiger.src.collections.PACKAGE.functions;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type-Specific Supplier interface that reduces (un)boxing and allows to merge other consumer types into this interface
|
|
|
|
* @Type(T)
|
|
|
|
*/
|
|
|
|
#if TYPE_OBJECT
|
|
|
|
public interface SUPPLIER KEY_GENERIC_TYPE extends java.util.function.Supplier<KEY_TYPE>
|
|
|
|
#else if JDK_TYPE && !TYPE_BOOLEAN
|
|
|
|
public interface SUPPLIER KEY_GENERIC_TYPE extends JAVA_SUPPLIER
|
|
|
|
#else
|
|
|
|
public interface SUPPLIER KEY_GENERIC_TYPE
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return the supplied value
|
|
|
|
*/
|
|
|
|
public KEY_TYPE GET_KEY();
|
2021-10-27 14:09:19 +02:00
|
|
|
#if JDK_TYPE && PRIMITIVES
|
2021-09-28 12:06:51 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public default KEY_TYPE GET_JAVA() {
|
|
|
|
return GET_KEY();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|