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"
591 * The input must be a valid extension subtags (excluding singleton)
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCollections.java1258 * A singleton empty unmodifiable navigable set used for
1887 * to preserve singleton property.
4391 // Preserves singleton property
4533 // Preserves singleton property
4698 // Preserves singleton property
4714 public static <T> Set<T> singleton(T o) { method in class:Collections
4749 * @return A singleton {@code Spliterator}
4933 keySet = singleton(k);
4939 entrySet = Collections.<Map.Entry<K,V>>singleton(
4946 values = singleton(
[all...]

Completed in 217 milliseconds