Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 361 for checkNotNull (0.44 sec)

  1. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

        this.singleRowKey = checkNotNull(rowKey);
        this.singleColumnKey = checkNotNull(columnKey);
        this.singleValue = checkNotNull(value);
      }
    
      SingletonImmutableTable(Cell<R, C, V> cell) {
        this(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
      }
    
      @Override
      public ImmutableMap<R, V> column(C columnKey) {
        checkNotNull(columnKey);
        return containsColumn(columnKey)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/RelationshipTester.java

          String relationshipName,
          String hashName,
          ItemReporter itemReporter) {
        this.equivalence = checkNotNull(equivalence);
        this.relationshipName = checkNotNull(relationshipName);
        this.hashName = checkNotNull(hashName);
        this.itemReporter = checkNotNull(itemReporter);
      }
    
      // TODO(cpovirk): should we reject null items, since the tests already check null automatically?
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeTraverser.java

          this.stack = new ArrayDeque<>();
          stack.addLast(Iterators.singletonIterator(checkNotNull(root)));
        }
    
        @Override
        public boolean hasNext() {
          return !stack.isEmpty();
        }
    
        @Override
        public T next() {
          Iterator<T> itr = stack.getLast(); // throws NSEE if empty
          T result = checkNotNull(itr.next());
          if (!itr.hasNext()) {
            stack.removeLast();
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/StandardValueGraph.java

      }
    
      @Override
      public boolean hasEdgeConnecting(N nodeU, N nodeV) {
        return hasEdgeConnectingInternal(checkNotNull(nodeU), checkNotNull(nodeV));
      }
    
      @Override
      public boolean hasEdgeConnecting(EndpointPair<N> endpoints) {
        checkNotNull(endpoints);
        return isOrderingCompatible(endpoints)
            && hasEdgeConnectingInternal(endpoints.nodeU(), endpoints.nodeV());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

       */
      public static <T extends @Nullable Object> Predicate<T> and(
          Predicate<? super T> first, Predicate<? super T> second) {
        return new AndPredicate<>(Predicates.<T>asList(checkNotNull(first), checkNotNull(second)));
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if any one of its components evaluates to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractSortedMultiset.java

          BoundType fromBoundType,
          @ParametricNullness E toElement,
          BoundType toBoundType) {
        // These are checked elsewhere, but NullPointerTester wants them checked eagerly.
        checkNotNull(fromBoundType);
        checkNotNull(toBoundType);
        return tailMultiset(fromElement, fromBoundType).headMultiset(toElement, toBoundType);
      }
    
      abstract Iterator<Entry<E>> descendingEntryIterator();
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedLists.java

          @ParametricNullness E key,
          Comparator<? super E> comparator,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        checkNotNull(comparator);
        checkNotNull(list);
        checkNotNull(presentBehavior);
        checkNotNull(absentBehavior);
        if (!(list instanceof RandomAccess)) {
          list = Lists.newArrayList(list);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

      }
    
      static <N, V> DirectedGraphConnections<N, V> ofImmutable(
          N thisNode, Iterable<EndpointPair<N>> incidentEdges, Function<N, V> successorNodeToValueFn) {
        checkNotNull(thisNode);
        checkNotNull(successorNodeToValueFn);
    
        Map<N, Object> adjacentNodeValues = new HashMap<>();
        ImmutableList.Builder<NodeConnection<N>> orderedNodeConnectionsBuilder =
            ImmutableList.builder();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

            return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
          }
        };
      }
    
      public static ByteSourceFactory asSlicedByteSourceFactory(
          final ByteSourceFactory factory, final long off, final long len) {
        checkNotNull(factory);
        return new ByteSourceFactory() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableTable.java

       * new entry with those values.
       */
      static <R, C, V> Cell<R, C, V> cellOf(R rowKey, C columnKey, V value) {
        return Tables.immutableCell(
            checkNotNull(rowKey, "rowKey"),
            checkNotNull(columnKey, "columnKey"),
            checkNotNull(value, "value"));
      }
    
      /**
       * A builder for creating immutable table instances, especially {@code public static final} tables
       * ("constant tables"). Example:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top