- Sort Score
- Num 10 results
- Language All
Results 551 - 560 of 1,161 for IsEmpty (0.04 seconds)
-
guava/src/com/google/common/collect/FluentIterable.java
// TODO(kevinb): Support a concurrently modified collection? Iterable<E> iterable = getDelegate(); if (iterable instanceof List) { List<E> list = (List<E>) iterable; if (list.isEmpty()) { return Optional.absent(); } return Optional.of(list.get(list.size() - 1)); } Iterator<E> iterator = iterable.iterator(); if (!iterator.hasNext()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Chars.java
this.array = array; this.start = start; this.end = end; } @Override public int size() { return end - start; } @Override public boolean isEmpty() { return false; } @Override public Character get(int index) { checkElementIndex(index, size()); return array[start + index]; } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/CharsTest.java
assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, 1, -1)); } public void testJoin() { assertThat(Chars.join(",", EMPTY)).isEmpty(); assertThat(Chars.join(",", '1')).isEqualTo("1"); assertThat(Chars.join(",", '1', '2')).isEqualTo("1,2"); assertThat(Chars.join("", '1', '2', '3')).isEqualTo("123"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 26K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
return listIterator(0); } @SuppressWarnings("unchecked") @Override public UnmodifiableListIterator<E> listIterator(int index) { checkPositionIndex(index, size()); if (isEmpty()) { return (UnmodifiableListIterator<E>) EMPTY_ITR; } else { return new Itr<E>(this, index); } } /** A singleton implementation of iterator() for the empty ImmutableList. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Shorts.java
this.array = array; this.start = start; this.end = end; } @Override public int size() { return end - start; } @Override public boolean isEmpty() { return false; } @Override public Short get(int index) { checkElementIndex(index, size()); return array[start + index]; } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 22 18:14:49 GMT 2025 - 25.7K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
throw new UnknownHostException("no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2) + (addr.getName().getScope() == null || addr.getName().getScope().isEmpty() ? " with no scope" : " with scope " + addr.getName().getScope()) + " for host " + addr.getHostAddress()); } } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 38.5K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RelocatedArtifact.java
this.groupId = (groupId != null && !groupId.isEmpty()) ? groupId : null; this.artifactId = (artifactId != null && !artifactId.isEmpty()) ? artifactId : null; this.classifier = (classifier != null && !classifier.isEmpty()) ? classifier : null; this.extension = (extension != null && !extension.isEmpty()) ? extension : null; this.version = (version != null && !version.isEmpty()) ? version : null;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1)); } public void testJoin() { assertThat(Ints.join(",", EMPTY)).isEmpty(); assertThat(Ints.join(",", ARRAY1)).isEqualTo("1"); assertThat(Ints.join(",", (int) 1, (int) 2)).isEqualTo("1,2"); assertThat(Ints.join("", (int) 1, (int) 2, (int) 3)).isEqualTo("123"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 29.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertTrue(map.isEmpty()); assertEquals(0, map.size()); assertFalse(map.containsKey("1")); assertFalse(map.containsKey("2")); assertFalse(map.containsKey("3")); assertEquals(0L, map.get("1")); assertEquals(0L, map.get("2")); assertEquals(0L, map.get("3")); map.putAll(in); assertFalse(map.isEmpty()); assertEquals(3, map.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertTrue(map.isEmpty()); assertEquals(0, map.size()); assertFalse(map.containsKey("1")); assertFalse(map.containsKey("2")); assertFalse(map.containsKey("3")); assertEquals(0L, map.get("1")); assertEquals(0L, map.get("2")); assertEquals(0L, map.get("3")); map.putAll(in); assertFalse(map.isEmpty()); assertEquals(3, map.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0)