Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 400 for Bounds (0.2 sec)

  1. guava-tests/test/com/google/common/collect/FauxveridesTest.java

             */
            return bounds.equals(other.bounds);
          }
    
          return false;
        }
    
        @Override
        public int hashCode() {
          return bounds.hashCode();
        }
    
        @Override
        public String toString() {
          return (bounds.equals(ImmutableList.of(Object.class)))
              ? name
              : name + " extends " + getTypesString(bounds);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

             */
            return bounds.equals(other.bounds);
          }
    
          return false;
        }
    
        @Override
        public int hashCode() {
          return bounds.hashCode();
        }
    
        @Override
        public String toString() {
          return (bounds.equals(ImmutableList.of(Object.class)))
              ? name
              : name + " extends " + getTypesString(bounds);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Types.java

       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    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)
  4. android/guava/src/com/google/common/reflect/TypeToken.java

      }
    
      private static Bounds every(Type[] bounds) {
        // Every bound must match. On any false, result is false.
        return new Bounds(bounds, false);
      }
    
      private static Bounds any(Type[] bounds) {
        // Any bound matches. On any true, result is true.
        return new Bounds(bounds, true);
      }
    
      private static class Bounds {
        private final Type[] bounds;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/TypeResolver.java

          if (type == null) {
            Type[] bounds = var.getBounds();
            if (bounds.length == 0) {
              return var;
            }
            Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds);
            /*
             * We'd like to simply create our own TypeVariable with the newly resolved bounds. There's
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeRangeSet.java

           * complementLowerBoundWindow. Complement range lower bounds are either positive range upper
           * bounds, or Cut.belowAll().
           *
           * positiveItr starts at the first positive range with lower bound greater than
           * firstComplementRangeLowerBound. (Positive range lower bounds correspond to complement range
           * upper bounds.)
           */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RangeMap.java

       * this range map are guaranteed to read through to the returned {@code Map}.
       *
       * <p>The returned {@code Map} iterates over entries in ascending order of the bounds of the
       * {@code Range} entries.
       *
       * <p>It is guaranteed that no empty ranges will be in the returned {@code Map}.
       */
      Map<Range<K>, V> asMapOfRanges();
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeVisitor.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Based on what a {@link Type} is, dispatch it to the corresponding {@code visit*} method. By
     * default, no recursion is done for type arguments or type bounds. But subclasses can opt to do
     * recursion by calling {@link #visit} for any {@code Type} while visitation is in progress. For
     * example, this can be used to reject wildcards or type variables contained in a type as in:
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 16 21:10:04 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        SortedSet<E> createSubSet(SortedSet<E> set, E firstExclusive, E lastExclusive) {
          if (from == Bound.NO_BOUND && to == Bound.EXCLUSIVE) {
            return set.headSet(lastExclusive);
          } else if (from == Bound.INCLUSIVE && to == Bound.NO_BOUND) {
            return set.tailSet(firstInclusive);
          } else if (from == Bound.INCLUSIVE && to == Bound.EXCLUSIVE) {
            return set.subSet(firstInclusive, lastExclusive);
          } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Range.java

        }
    
        for (C value : values) {
          if (!contains(value)) {
            return false;
          }
        }
        return true;
      }
    
      /**
       * Returns {@code true} if the bounds of {@code other} do not extend outside the bounds of this
       * range. Examples:
       *
       * <ul>
       *   <li>{@code [3..6]} encloses {@code [4..5]}
       *   <li>{@code (3..6)} encloses {@code (3..6)}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
Back to top