Searched refs:Color (Results 1 – 5 of 5) sorted by relevance
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
| D | EnumMapTest.java | 37 enum Color { enum in EnumMapTest 103 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_lang_Class() 105 Color.Green, 2)); in test_ConstructorLjava_lang_Class() 107 enumColorMap.get(Color.Green)); in test_ConstructorLjava_lang_Class() 111 enumEmptyMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 123 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 135 enumSizeMap.put(Color.Red, 2); in test_ConstructorLjava_lang_Class() 156 enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_util_EnumMap() 158 enumColorMap.put(Color.Green, 2); in test_ConstructorLjava_util_EnumMap() 159 enumColorMap.put(Color.Blue, double1); in test_ConstructorLjava_util_EnumMap() [all …]
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
| D | EnumTest.java | 44 enum Color { enum in EnumTest 220 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); in testSerializationSelf() 221 enumColorMap.put(Color.Red, 1); in testSerializationSelf() 222 enumColorMap.put(Color.Blue, 3); in testSerializationSelf() 249 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); in testSerializationCompatibility() 250 enumColorMap.put(Color.Red, 1); in testSerializationCompatibility() 251 enumColorMap.put(Color.Blue, 3); in testSerializationCompatibility()
|
| /libcore/luni/src/main/java/libcore/internal/ |
| D | Java21LanguageFeatures.java | 177 public enum Color { RED, GREEN, BLUE } 179 public record MultiBlob(ShapeType type, Color color, Integer count) implements ComplexBlob { } 188 case MultiBlob (var type, Color color, var count) 189 when color == Color.RED -> Color.RED;
|
| /libcore/luni/src/test/java21language/java/libcore/libcore/internal/ |
| D | Java21LanguageFeaturesTest.java | 149 Java21LanguageFeatures.Color.RED, Integer.valueOf(5)); in testComplexSwitchPatterns() 154 Java21LanguageFeatures.Color.RED, Integer.valueOf(5)); in testComplexSwitchPatterns() 156 assertEquals(Java21LanguageFeatures.Color.RED, result); in testComplexSwitchPatterns() 159 Java21LanguageFeatures.Color.BLUE, Integer.valueOf(5)); in testComplexSwitchPatterns() 164 Java21LanguageFeatures.Color.BLUE, Integer.valueOf(10)); in testComplexSwitchPatterns()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
| D | ObjectOutputStreamTest.java | 472 private static enum Color { enum in ObjectOutputStreamTest.WriteReplaceObject 1263 replaceObject = WriteReplaceObject.Color.red; in test_replaceObject()
|