Searched defs:empty (Results 1 - 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DStack.java34 * for whether the stack is <tt>empty</tt>, and a method to <tt>search</tt>
51 * Creates an empty Stack.
78 * @throws EmptyStackException if this stack is empty.
96 * @throws EmptyStackException if this stack is empty.
107 * Tests if this stack is empty.
112 public boolean empty() { method in class:Stack
H A DOptionalDouble.java47 * Common instance for {@code empty()}.
58 * Construct an empty instance.
60 * @implNote generally only one empty instance, {@link OptionalDouble#EMPTY},
69 * Returns an empty {@code OptionalDouble} instance. No value is present for this
73 * is empty by comparing with {@code ==} against instances returned by
74 * {@code Option.empty()}. There is no guarantee that it is a singleton.
77 * @return an empty {@code OptionalDouble}.
79 public static OptionalDouble empty() { method in class:OptionalDouble
169 * @apiNote A method reference to the exception constructor with an empty
232 * Returns a non-empty strin
[all...]
H A DOptionalInt.java47 * Common instance for {@code empty()}.
58 * Construct an empty instance.
60 * @implNote Generally only one empty instance, {@link OptionalInt#EMPTY},
69 * Returns an empty {@code OptionalInt} instance. No value is present for this
73 * is empty by comparing with {@code ==} against instances returned by
74 * {@code Option.empty()}. There is no guarantee that it is a singleton.
77 * @return an empty {@code OptionalInt}
79 public static OptionalInt empty() { method in class:OptionalInt
170 * @apiNote A method reference to the exception constructor with an empty
233 * Returns a non-empty strin
[all...]
H A DOptionalLong.java47 * Common instance for {@code empty()}.
58 * Construct an empty instance.
60 * @implNote generally only one empty instance, {@link OptionalLong#EMPTY},
69 * Returns an empty {@code OptionalLong} instance. No value is present for this
73 * is empty by comparing with {@code ==} against instances returned by
74 * {@code Option.empty()}. There is no guarantee that it is a singleton.
77 * @return an empty {@code OptionalLong}.
79 public static OptionalLong empty() { method in class:OptionalLong
169 * @apiNote A method reference to the exception constructor with an empty
232 * Returns a non-empty strin
[all...]
H A DOptional.java48 * Common instance for {@code empty()}.
58 * Constructs an empty instance.
60 * @implNote Generally only one empty instance, {@link Optional#EMPTY},
68 * Returns an empty {@code Optional} instance. No value is present for this
72 * is empty by comparing with {@code ==} against instances returned by
73 * {@code Option.empty()}. There is no guarantee that it is a singleton.
77 * @return an empty {@code Optional}
79 public static<T> Optional<T> empty() { method in class:Optional
109 * otherwise returns an empty {@code Optional}.
114 * is non-null, otherwise an empty {
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
H A DAttributes2ImplTest.java31 private Attributes2Impl empty = new Attributes2Impl(); field in class:Attributes2ImplTest
69 attrs.setAttributes(empty);
83 attrs.setAttributes(empty);
190 assertEquals(0, empty.getLength());
208 attrs = new Attributes2Impl(empty);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DAttributeListImplTest.java27 private AttributeListImpl empty = new AttributeListImpl(); field in class:AttributeListImplTest
39 assertEquals(0, empty.getLength());
45 AttributeListImpl ai = new AttributeListImpl(empty);
67 attrs.setAttributeList(empty);
134 AttributeListImpl ai = new AttributeListImpl(empty);
H A DAttributesImplTest.java26 private AttributesImpl empty = new AttributesImpl(); field in class:AttributesImplTest
44 assertEquals(0, empty.getLength());
50 AttributesImpl ai = new AttributesImpl(empty);
68 AttributesImpl ai = new AttributesImpl(empty);
241 attrs.setAttributes(empty);
260 // Expected, but must be empty now
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DKeyManagerFactoryTest.java129 private void test_KeyManagerFactory_getKeyManagers(KeyManagerFactory kmf, boolean empty) argument
137 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm());
160 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) argument
165 if (empty || keyType == null || keyType.isEmpty()) {
171 test_X509KeyManager_alias(km, alias, keyType, false, empty);
176 if (empty || keyType == null || keyType.isEmpty()) {
182 test_X509KeyManager_alias(km, alias, keyType, false, empty);
187 test_X509KeyManager_alias(km, a, null, true, empty);
192 test_X509KeyManager_alias(km, alias, keyType, false, empty);
196 test_X509KeyManager_alias(km, alias, keyType, false, empty);
203 test_X509ExtendedKeyManager(X509ExtendedKeyManager km, boolean empty, String algorithm) argument
219 test_X509KeyManager_alias(X509KeyManager km, String alias, String keyType, boolean many, boolean empty) argument
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONStringer.java174 JSONStringer open(Scope empty, String openBracket) throws JSONException { argument
179 stack.add(empty);
188 JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException { argument
190 if (context != nonempty && context != empty) {
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java155 * an empty stream is used, instead.)
255 * empty stream will be returned.
394 * return foundAny ? OptionalDouble.of(result) : OptionalDouble.empty();
498 * stream, or an empty OptionalDouble if this stream is empty. The minimum
512 * stream, or an empty optional if the stream is empty
518 * stream, or an empty OptionalDouble if this stream is empty. The maximum
533 * stream, or an empty optiona
733 public static DoubleStream empty() { method in interface:DoubleStream
[all...]
H A DStream.java231 * an empty stream is used, instead.)
275 * {@code null} an empty stream is used, instead.)
295 * {@code null} an empty stream is used, instead.)
315 * {@code null} an empty stream is used, instead.)
453 * empty stream will be returned.
623 * return foundAny ? Optional.of(result) : Optional.empty();
817 * or an empty {@code Optional} if the stream is empty
834 * or an empty {@code Optional} if the stream is empty
972 public static<T> Stream<T> empty() { method in interface:Stream
[all...]
H A DIntStream.java153 * an empty stream is used, instead.)
250 * empty stream will be returned.
389 * return foundAny ? OptionalInt.of(result) : OptionalInt.empty();
466 * stream, or an empty optional if this stream is empty. This is a special
476 * stream, or an empty {@code OptionalInt} if the stream is empty
482 * stream, or an empty optional if this stream is empty. This is a special
493 * stream, or an empty {
701 public static IntStream empty() { method in interface:IntStream
[all...]
H A DLongStream.java157 * an empty stream is used, instead.)
254 * empty stream will be returned.
393 * return foundAny ? OptionalLong.of(result) : OptionalLong.empty();
470 * stream, or an empty optional if this stream is empty. This is a special
480 * stream, or an empty {@code OptionalLong} if the stream is empty
486 * stream, or an empty optional if this stream is empty. This is a special
497 * stream, or an empty {
693 public static LongStream empty() { method in interface:LongStream
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DLambdaTestHelpers.java142 public static List<Integer> empty() { method in class:LambdaTestHelpers
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DLambdaTestHelpers.java143 public static List<Integer> empty() { method in class:LambdaTestHelpers
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp500 * Possibly empty.
507 * Returns the element or attribute local name, like "h1". Never empty. When
509 * local name like "html:h1". In such cases, the qName will always be empty.
516 * Returns the namespace prefix, like "html". Possibly empty.
1295 static void ExpatParser_staticInitialize(JNIEnv* env, jobject classObject, jstring empty) { argument
1353 emptyString = reinterpret_cast<jstring>(env->NewGlobalRef(empty));

Completed in 432 milliseconds