Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 453 for else (0.39 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof java.util.Optional) {
            return !((java.util.Optional<?>) value).isPresent();
          } else if (value instanceof OptionalInt) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          throws IOException {
        if (singleByte) {
          for (int i = off; i < off + len; i++) {
            out.write(b[i]);
          }
        } else {
          out.write(b, off, len);
        }
        out.flush(); // for coverage
      }
    
      // TODO(chrisn): only works if we ensure we have crossed file threshold
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Closeables.java

          return;
        }
        try {
          closeable.close();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e);
          } else {
            throw e;
          }
        }
      }
    
      /**
       * Closes the given {@link InputStream}, logging any {@code IOException} that's thrown rather than
       * propagating it.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        assertEqualIgnoringOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualIgnoringOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
    
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
          if (t instanceof Error) throw (Error) t;
          else if (t instanceof RuntimeException) throw (RuntimeException) t;
          else if (t instanceof Exception) throw (Exception) t;
          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

            Range<Integer> expected;
            if (range1.isEmpty()) {
              if (range2.isEmpty()) {
                expected = null;
              } else {
                expected = range2;
              }
            } else {
              if (range2.isEmpty()) {
                expected = range1;
              } else {
                expected = range1.span(range2);
              }
            }
    
            try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/PercentEscaper.java

          return null;
        } else if (cp == ' ' && plusForSpace) {
          return PLUS_SIGN;
        } else if (cp <= 0x7F) {
          // Single byte UTF-8 characters
          // Start with "%--" and fill in the blanks
          char[] dest = new char[3];
          dest[0] = '%';
          dest[2] = UPPER_HEX_DIGITS[cp & 0xF];
          dest[1] = UPPER_HEX_DIGITS[cp >>> 4];
          return dest;
        } else if (cp <= 0x7ff) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          boolean executeImmediate = false;
    
          synchronized (runnables) {
            if (!executed) {
              runnables.add(new RunnableExecutorPair(runnable, executor));
            } else {
              executeImmediate = true;
            }
          }
    
          if (executeImmediate) {
            new RunnableExecutorPair(runnable, executor).execute();
          }
        }
    
        public void execute() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              if (count == 0) {
                return 0;
              } else {
                AtomicInteger newCounter = new AtomicInteger(count);
                if ((countMap.putIfAbsent(element, newCounter) == null)
                    || countMap.replace(element, existingCounter, newCounter)) {
                  return 0;
                }
              }
              break;
            } else {
              if (existingCounter.compareAndSet(oldValue, count)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        if (supportsRemove()) {
          table.clear();
          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          try {
            table.clear();
            fail();
          } catch (UnsupportedOperationException expected) {
          }
        }
      }
    
      public void testPut() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top