Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,654 for nullif (0.05 sec)

  1. guava/src/com/google/common/reflect/Parameter.java

        return getAnnotation(annotationType) != null;
      }
    
      @Override
      @CheckForNull
      public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Streams.java

       */
      /*
       * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring a
       * stream whose elements are non-null. However, the method goes out of its way to still handle
       * nulls in the stream. This means that the method can safely be used with a stream that contains
       * nulls as long as the *last* element is *not* null.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashSet.java

          newDelegate.add(element(i));
        }
        this.table = newDelegate;
        this.entries = null;
        this.elements = null;
        incrementModCount();
        return newDelegate;
      }
    
      @VisibleForTesting
      boolean isUsingHashFloodingResistance() {
        return delegateOrNull() != null;
      }
    
      /** Stores the hash table mask as the number of bits needed to represent an index. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      /**
       * Moves the last entry in the entry array into {@code dstIndex}, and nulls out its old position.
       */
      void moveLastEntry(int dstIndex) {
        int srcIndex = size() - 1;
        if (dstIndex < srcIndex) {
          // move last entry to deleted spot
          keys[dstIndex] = keys[srcIndex];
          values[dstIndex] = values[srcIndex];
          keys[srcIndex] = null;
          values[srcIndex] = 0;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/Collections2Test.java

                    List<@Nullable String> list = newArrayList();
                    for (String element : elements) {
                      list.add((element == null) ? null : "q" + element);
                    }
                    return Collections2.transform(
                        list, from -> isNullOrEmpty(from) ? null : from.substring(1));
                  }
                })
            .named("Collections2.transform")
            .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /*
       * We don't permit nulls, but we wrap every comparator with nullsFirst().
       * Why? We want for queries like containsKey(null) to return false, but the
       * GWT SortedMap implementation that we delegate to throws
       * NullPointerException if the comparator does. Since our construction
       * methods ensure that null is never present in the map, it's OK for the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

       */
      @CheckForNull
      V getLiveValue(ReferenceEntry<K, V> entry, long now) {
        if (entry.getKey() == null) {
          return null;
        }
        V value = entry.getValueReference().get();
        if (value == null) {
          return null;
        }
    
        if (isExpired(entry, now)) {
          return null;
        }
        return value;
      }
    
      // expiration
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

          newDelegate.add(element(i));
        }
        this.table = newDelegate;
        this.entries = null;
        this.elements = null;
        incrementModCount();
        return newDelegate;
      }
    
      @VisibleForTesting
      boolean isUsingHashFloodingResistance() {
        return delegateOrNull() != null;
      }
    
      /** Stores the hash table mask as the number of bits needed to represent an index. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Tables.java

       * removal operations, and these are reflected in the underlying table.
       *
       * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
       * that the function is capable of accepting null input. The transformed table might contain null
       * values, if the function sometimes gives a null result.
       *
       * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

      }
    
      /*
       * All the ContiguousSet generators below manually reject nulls here. In principle, we'd like to
       * defer that to Range, since it's ContiguousSet.create() that's used to create the sets. However,
       * that gets messy here, and we already have null tests for Range.
       */
    
      /*
       * These generators also rely on consecutive integer inputs (not necessarily in order, but no
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top