Pair Module is now done.

This commit is contained in:
Speiger 2022-12-07 04:35:29 +01:00
parent 8d9f7a6761
commit ce9343348e
4 changed files with 278 additions and 91 deletions

View File

@ -19,7 +19,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -28,7 +30,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -37,7 +41,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -46,7 +52,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -55,7 +63,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -64,7 +74,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -73,7 +85,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -82,7 +96,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -91,7 +107,9 @@
"Enabled": true "Enabled": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -142,7 +160,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -169,7 +189,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -196,7 +218,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -223,7 +247,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -250,7 +276,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -277,7 +305,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -304,7 +334,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -331,7 +363,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -358,7 +392,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -424,7 +460,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -451,7 +489,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -478,7 +518,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -505,7 +547,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -532,7 +576,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -559,7 +605,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -586,7 +634,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -613,7 +663,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -640,7 +692,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -706,7 +760,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -733,7 +789,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -760,7 +818,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -787,7 +847,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -814,7 +876,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -841,7 +905,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -868,7 +934,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -895,7 +963,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -922,7 +992,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -988,7 +1060,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -1015,7 +1089,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -1042,7 +1118,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -1069,7 +1147,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -1096,7 +1176,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -1123,7 +1205,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -1150,7 +1234,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -1177,7 +1263,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -1204,7 +1292,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -1270,7 +1360,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -1297,7 +1389,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -1324,7 +1418,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -1351,7 +1447,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -1378,7 +1476,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -1405,7 +1505,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -1432,7 +1534,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -1459,7 +1563,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -1486,7 +1592,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -1552,7 +1660,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -1579,7 +1689,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -1606,7 +1718,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -1633,7 +1747,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -1660,7 +1776,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -1687,7 +1805,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -1714,7 +1834,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -1741,7 +1863,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -1768,7 +1892,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -1834,7 +1960,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -1861,7 +1989,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -1888,7 +2018,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -1915,7 +2047,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -1942,7 +2076,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -1969,7 +2105,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -1996,7 +2134,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -2023,7 +2163,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -2050,7 +2192,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {
@ -2116,7 +2260,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Byte": { "Byte": {
@ -2143,7 +2289,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Short": { "Short": {
@ -2170,7 +2318,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Character": { "Character": {
@ -2197,7 +2347,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Integer": { "Integer": {
@ -2224,7 +2376,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Long": { "Long": {
@ -2251,7 +2405,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Float": { "Float": {
@ -2278,7 +2434,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Double": { "Double": {
@ -2305,7 +2463,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Object": { "Object": {
@ -2332,7 +2492,9 @@
"Wrappers": true "Wrappers": true
}, },
"Pair": { "Pair": {
"Enabled": true "Enabled": true,
"Immutable": false,
"Mutable": true
} }
}, },
"Collection": { "Collection": {

View File

@ -253,8 +253,8 @@ public class PrimitiveCollectionsBuilder extends TemplateProcessor
boolean force = flags.contains("force"); boolean force = flags.contains("force");
boolean tests = flags.contains("tests"); boolean tests = flags.contains("tests");
boolean forceTests = flags.contains("force-tests"); boolean forceTests = flags.contains("force-tests");
boolean load = flags.contains("load"); boolean load = !flags.contains("load");
boolean save = !flags.contains("save"); boolean save = flags.contains("save");
int flag = (load ? LOAD : 0) | (save ? SAVE : 0); int flag = (load ? LOAD : 0) | (save ? SAVE : 0);
new PrimitiveCollectionsBuilder(silent).setFlags(flag).process(force); new PrimitiveCollectionsBuilder(silent).setFlags(flag).process(force);
if(tests) { if(tests) {

View File

@ -1,5 +1,11 @@
package speiger.src.builder.modules; package speiger.src.builder.modules;
import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;
import speiger.src.builder.ClassType;
@SuppressWarnings("javadoc") @SuppressWarnings("javadoc")
public class PairModule extends BaseModule public class PairModule extends BaseModule
{ {
@ -11,17 +17,28 @@ public class PairModule extends BaseModule
@Override @Override
protected void loadVariables() {} protected void loadVariables() {}
@Override @Override
protected void loadBlockades() {}
@Override
protected void loadFlags() {}
@Override
protected void loadFunctions() {} protected void loadFunctions() {}
@Override @Override
protected void loadTestClasses() {} protected void loadTestClasses() {}
@Override
public Set<String> getModuleKeys(ClassType keyType, ClassType valueType) { return new TreeSet<>(Arrays.asList("Mutable", "Immutable")); }
@Override @Override
protected void loadRemappers() protected void loadFlags() {
{ if(isModuleEnabled()) addFlag("PAIR_MODULE");
if(isModuleEnabled("Mutable")) addFlag("MUTABLE_PAIR");
if(isModuleEnabled("Immutable")) addFlag("IMMUTABLE_PAIR");
}
@Override
protected void loadBlockades() {
if(!isModuleEnabled()) addBlockedFiles("Pair");
if(!isModuleEnabled("Mutable")) addBlockedFiles("MutablePair");
if(!isModuleEnabled("Immutable")) addBlockedFiles("ImmutablePair");
}
@Override
protected void loadRemappers() {
//Main Classes //Main Classes
addBiRequirement("Pair", ""); addBiRequirement("Pair", "");
addBiRequirement("MutablePair", ""); addBiRequirement("MutablePair", "");
@ -32,8 +49,7 @@ public class PairModule extends BaseModule
} }
@Override @Override
protected void loadClasses() protected void loadClasses() {
{
//Implementations //Implementations
addBiClassMapper("IMMUTABLE_PAIR", "ImmutablePair", ""); addBiClassMapper("IMMUTABLE_PAIR", "ImmutablePair", "");
addBiClassMapper("MUTABLE_PAIR", "MutablePair", ""); addBiClassMapper("MUTABLE_PAIR", "MutablePair", "");

View File

@ -1,7 +1,12 @@
package speiger.src.collections.PACKAGE.misc.pairs; package speiger.src.collections.PACKAGE.misc.pairs;
#if IMMUTABLE_PAIR
import speiger.src.collections.PACKAGE.misc.pairs.impl.IMMUTABLE_PAIR; import speiger.src.collections.PACKAGE.misc.pairs.impl.IMMUTABLE_PAIR;
#endif
#if MUTABLE_PAIR
import speiger.src.collections.PACKAGE.misc.pairs.impl.MUTABLE_PAIR; import speiger.src.collections.PACKAGE.misc.pairs.impl.MUTABLE_PAIR;
#endif
/** /**
* Key Value Pair Interface that allows to reduce boxing/unboxing. * Key Value Pair Interface that allows to reduce boxing/unboxing.
* @Type(T) * @Type(T)
@ -9,6 +14,7 @@ import speiger.src.collections.PACKAGE.misc.pairs.impl.MUTABLE_PAIR;
*/ */
public interface PAIR KEY_VALUE_GENERIC_TYPE public interface PAIR KEY_VALUE_GENERIC_TYPE
{ {
#if IMMUTABLE_PAIR
/** /**
* Empty Reference for Immutable Pairs * Empty Reference for Immutable Pairs
*/ */
@ -68,6 +74,8 @@ public interface PAIR KEY_VALUE_GENERIC_TYPE
return new IMMUTABLE_PAIRKV_BRACES(pair.ENTRY_KEY(), pair.ENTRY_VALUE()); return new IMMUTABLE_PAIRKV_BRACES(pair.ENTRY_KEY(), pair.ENTRY_VALUE());
} }
#endif
#if MUTABLE_PAIR
/** /**
* @Type(T) * @Type(T)
* @ValueType(V) * @ValueType(V)
@ -118,6 +126,7 @@ public interface PAIR KEY_VALUE_GENERIC_TYPE
return new MUTABLE_PAIRKV_BRACES(pair.ENTRY_KEY(), pair.ENTRY_VALUE()); return new MUTABLE_PAIRKV_BRACES(pair.ENTRY_KEY(), pair.ENTRY_VALUE());
} }
#endif
/** /**
* Sets the Key of the Pair. * Sets the Key of the Pair.
* @param key the key that should be set. * @param key the key that should be set.