Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 278 for elseif (0.19 sec)

  1. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Map<K, V> map = makeEitherMap();
        if (allowsNullKeys) {
          if (allowsNullValues) {
            // TODO: decide what to test here.
          } else {
            assertEquals(map.containsKey(null), map.get(null) != null);
          }
        } else {
          try {
            map.get(null);
          } catch (NullPointerException optional) {
          }
        }
        assertInvariants(map);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultiset.java

          return aggregateBelowRange(aggr, node.left);
        } else if (cmp == 0) {
          switch (range.getLowerBoundType()) {
            case OPEN:
              return aggr.nodeAggregate(node) + aggr.treeAggregate(node.left);
            case CLOSED:
              return aggr.treeAggregate(node.left);
            default:
              throw new AssertionError();
          }
        } else {
          return aggr.treeAggregate(node.left)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

            firstInKeyInsertionOrder = entry;
          } else {
            lastInKeyInsertionOrder.nextInKeyInsertionOrder = entry;
          }
          lastInKeyInsertionOrder = entry;
        } else {
          entry.prevInKeyInsertionOrder = oldEntryForKey.prevInKeyInsertionOrder;
          if (entry.prevInKeyInsertionOrder == null) {
            firstInKeyInsertionOrder = entry;
          } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        if (result == null) {
          return null;
        } else {
          return (V) result;
        }
      }
    
      @CheckForNull
      static Object get(
          @CheckForNull Object hashTableObject,
          @Nullable Object[] alternatingKeysAndValues,
          int size,
          int keyOffset,
          @CheckForNull Object key) {
        if (key == null) {
          return null;
        } else if (size == 1) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedListMultimap.java

            keyToKeyList.put(key, keyList = new KeyList<>(node));
            modCount++;
          } else {
            keyList.count++;
            Node<K, V> keyTail = keyList.tail;
            keyTail.nextSibling = node;
            node.previousSibling = keyTail;
            keyList.tail = node;
          }
        } else { // non-empty list, insert before nextSibling
          /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

            return value;
          } else {
            replaceValueInEntry(entryForKey, value, force);
            return oldValue;
          }
        }
    
        int valueHash = Hashing.smearedHash(value);
        int valueEntry = findEntryByValue(value, valueHash);
        if (force) {
          if (valueEntry != ABSENT) {
            removeEntryValueHashKnown(valueEntry, valueHash);
          }
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  7. 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 Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsTest.java

            assertWithMessage("mean of " + values).that(mean).isNaN();
          } else if (values.hasAnyPositiveInfinity() && values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isNaN();
          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableRangeMap.java

                Range::lowerBound,
                Cut.belowValue(key),
                KeyPresentBehavior.ANY_PRESENT,
                KeyAbsentBehavior.NEXT_LOWER);
        if (index == -1) {
          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? values.get(index) : null;
        }
      }
    
      @Override
      @CheckForNull
      public Entry<Range<K>, V> getEntry(K key) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/Types.java

                .toString()
                .contains("java.util.Map.java.util.Map")) {
              CURRENT = JAVA8;
            } else {
              CURRENT = JAVA9;
            }
          } else if (new TypeCapture<int[]>() {}.capture() instanceof Class) {
            CURRENT = JAVA7;
          } else {
            CURRENT = JAVA6;
          }
        }
    
        abstract Type newArrayType(Type componentType);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top