Searched defs:singleton (Results 1 - 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DSampleBundleClass.java27 private static SampleBundleClass singleton; field in class:SampleBundleClass
32 if (singleton != null) {
35 singleton = this;
/libcore/ojluni/src/main/java/sun/util/locale/
H A DInternalLocaleBuilder.java167 public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException { argument
169 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton);
170 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) {
171 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton);
175 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton);
244 String singleton = s;
245 StringBuilder sb = new StringBuilder(singleton);
260 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'",
321 // each extension string contains singleton, e.g. "a-abc-def"
590 * The input must be a valid extension subtags (excluding singleton)
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCollections.java3622 // Preserves singleton property
3723 // Preserves singleton property
3846 // Preserves singleton property
3862 public static <E> Set<E> singleton(E o) { method in class:Collections
3897 * @return A singleton {@code Spliterator}
4084 keySet = singleton(k);
4090 entrySet = Collections.<Map.Entry<K,V>>singleton(
4097 values = singleton(v);

Completed in 85 milliseconds