diff --git a/src/builder/java/speiger/src/builder/modules/FunctionModule.java b/src/builder/java/speiger/src/builder/modules/FunctionModule.java index 7ddc456..8926b6c 100644 --- a/src/builder/java/speiger/src/builder/modules/FunctionModule.java +++ b/src/builder/java/speiger/src/builder/modules/FunctionModule.java @@ -54,6 +54,8 @@ public class FunctionModule extends BaseModule protected void loadFunctions() { addSimpleMapper("APPLY", keyType.getApply(valueType)); + addSimpleMapper("SUPPLY_GET", keyType.isObject() ? "get" : "getAs"+keyType.getCustomJDKType().getNonFileType()); + addSimpleMapper("VALUE_SUPPLY_GET", valueType.isObject() ? "get" : "getAs"+valueType.getCustomJDKType().getNonFileType()); } @Override diff --git a/src/builder/java/speiger/src/builder/modules/MapModule.java b/src/builder/java/speiger/src/builder/modules/MapModule.java index 5f162d5..f697d2c 100644 --- a/src/builder/java/speiger/src/builder/modules/MapModule.java +++ b/src/builder/java/speiger/src/builder/modules/MapModule.java @@ -214,7 +214,6 @@ public class MapModule extends BaseModule addFunctionValueMappers("FIRST_ENTRY_VALUE", "first%sValue"); if(keyType.isObject()) addFunctionValueMapper("GET_VALUE", valueType.isObject() ? "getObject" : "get"); else addSimpleMapper("GET_VALUE", "get"); - addSimpleMapper("GET_JAVA", keyType.isObject() ? "get" : "getAs"+keyType.getCustomJDKType().getNonFileType()); addFunctionMappers("LAST_ENTRY_KEY", "last%sKey"); addFunctionValueMappers("LAST_ENTRY_VALUE", "last%sValue"); addFunctionValueMapper("MERGE", "merge"); diff --git a/src/builder/resources/speiger/assets/collections/templates/functions/Supplier.template b/src/builder/resources/speiger/assets/collections/templates/functions/Supplier.template index c90c528..22158d6 100644 --- a/src/builder/resources/speiger/assets/collections/templates/functions/Supplier.template +++ b/src/builder/resources/speiger/assets/collections/templates/functions/Supplier.template @@ -15,12 +15,5 @@ public interface SUPPLIER KEY_GENERIC_TYPE /** * @return the supplied value */ - public KEY_TYPE GET_KEY(); -#if JDK_TYPE && PRIMITIVES - - @Override - public default KEY_TYPE GET_JAVA() { - return GET_KEY(); - } -#endif + public KEY_TYPE SUPPLY_GET(); } \ No newline at end of file diff --git a/src/builder/resources/speiger/assets/collections/templates/maps/abstracts/AbstractMap.template b/src/builder/resources/speiger/assets/collections/templates/maps/abstracts/AbstractMap.template index 0916c8e..7730078 100644 --- a/src/builder/resources/speiger/assets/collections/templates/maps/abstracts/AbstractMap.template +++ b/src/builder/resources/speiger/assets/collections/templates/maps/abstracts/AbstractMap.template @@ -233,7 +233,7 @@ public abstract class ABSTRACT_MAP KEY_VALUE_GENERIC_TYPE extends AbstractMap