Home
last modified time | relevance | path

Searched refs:singleton (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSampleBundleClass.java27 private static SampleBundleClass singleton; field in SampleBundleClass
32 if (singleton != null) { in SampleBundleClass()
35 singleton = this; in SampleBundleClass()
DAbstractMapTest.java396 Set<Object> setOfNull = Collections.singleton(null);
DCollectionsTest.java677 Set single = Collections.singleton(o); in test_singletonLjava_lang_Object()
681 assertFalse("null nCopies contains", Collections.singleton(null) in test_singletonLjava_lang_Object()
683 assertTrue("null nCopies contains null", Collections.singleton(null) in test_singletonLjava_lang_Object()
1865 mySet = Collections.unmodifiableSet(Collections.singleton(null)); in test_unmodifiableSetLjava_util_Set()
DCollections2Test.java563 testSetForEach(Collections.singleton(1)); in test_Set_forEach()
/libcore/ojluni/src/main/java/sun/util/locale/
DInternalLocaleBuilder.java167 …public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxExcepti… in setExtension() argument
169 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); in setExtension()
170 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { in setExtension()
171 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); in setExtension()
175 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); in setExtension()
244 String singleton = s; in setExtensions() local
245 StringBuilder sb = new StringBuilder(singleton); in setExtensions()
260 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", in setExtensions()
DLocaleExtensions.java198 char singleton = entry.getKey(); in toID() local
200 if (LanguageTag.isPrivateusePrefixChar(singleton)) { in toID()
DLanguageTag.java346 String singleton = s; in parseExtensions() local
347 StringBuilder sb = new StringBuilder(singleton); in parseExtensions()
363 sts.errorMsg = "Incomplete extension '" + singleton + "'"; in parseExtensions()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DExplodeOpTest.java91 …Collection<Integer> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream… in testIntOps()
106 …Collection<Long> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().… in testLongOps()
121 …Collection<Double> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream(… in testDoubleOps()
/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXRevocationCheckerTest.java90 checker.setOptions(Collections.singleton(Option.SOFT_FAIL)); in test_getOptions()
91 assertEquals(Collections.singleton(Option.SOFT_FAIL), checker.getOptions()); in test_getOptions()
DCertPathValidatorTest.java95 .singleton(new TrustAnchor((X509Certificate) rootCaEntry.getCertificate(), null))); in runOCSPStapledTest()
105 revChecker.setOptions(Collections.singleton(Option.ONLY_END_ENTITY)); in runOCSPStapledTest()
DOldPKIXParametersTest.java112 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsPolicyMappingInhibited()
141 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsRevocationEnabled()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java188 return new HashSet<String>(Collections.singleton("FooLocation")); in provideZoneIds()
211 return new HashSet<>(Collections.singleton("DynamicLocation")); in provideZoneIds()
/libcore/ojluni/src/test/java/security/cert/
DAKISerialNumberTest.java126 (Collections.singleton(anchor), sel); in main()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPKIXCertPathValidator.java184 Collections.singleton(PolicyChecker.ANY_POLICY), in validate()
DSunCertPathBuilder.java330 Collections.singleton(PolicyChecker.ANY_POLICY); in depthFirstSearchForward()
DPolicyChecker.java621 Set<String> expectedPolicies = Collections.singleton(policy); in rewriteLeafNodes()
DRevocationChecker.java950 Collections.singleton(anchor);
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java329 return Collections.singleton(resource); in createServiceFileIterator()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java295 return Collections.singleton(classLoader.getResource(SERVICE_ID)); in createServiceFileIterator()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java828 Collections.singleton(new TrustAnchor(rootCertificateSS, null)),
/libcore/luni/src/test/java/libcore/java/util/
DSetOfTest.java201 Set<T> examples = Collections.singleton(example); in assertUnmodifiable()
DCalendarTest.java335 Set<String> expected = Collections.singleton("gregory"); in testGetAvailableCalendarTypes()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java87 LexicographicList(E e) { super(Collections.singleton(e)); } in LexicographicList()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java144 @libcore.util.NonNull public static <T> java.util.Set<@libcore.util.NullFromTypeParam T> singleton(… in singleton() method in Collections
/libcore/ojluni/src/main/java/java/util/
DCollections.java4723 public static <T> Set<T> singleton(T o) {
4942 keySet = singleton(k);
4948 entrySet = Collections.<Map.Entry<K,V>>singleton(
4955 values = singleton(v);

12