Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,371 for instance (0.4 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

          this.instance = instance;
        }
    
        @Override
        @ParametricNullness
        public T get() {
          return instance;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof SupplierOfInstance) {
            SupplierOfInstance<?> that = (SupplierOfInstance<?>) obj;
            return Objects.equal(instance, that.instance);
          }
          return false;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
            if (instance != null
                && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) {
              try {
                nullPointerTester.testAllPublicInstanceMethods(instance);
              } catch (AssertionError e) {
                AssertionError error =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/DiscreteDomain.java

        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/DiscreteDomain.java

        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Cut.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /*
       * The implementation neither produces nor consumes any non-null instance of
       * type C, so casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> aboveAll() {
        return (Cut<C>) AboveAll.INSTANCE;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Interner.java

       * intern(a)} is permitted to return one instance now and a different instance later if the
       * original interned instance was garbage-collected.
       *
       * <p><b>Warning:</b> do not use with mutable objects.
       *
       * @throws NullPointerException if {@code sample} is null
       */
      E intern(E sample);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Funnels.java

      private Funnels() {}
    
      /** Returns a funnel that extracts the bytes from a {@code byte} array. */
      public static Funnel<byte[]> byteArrayFunnel() {
        return ByteArrayFunnel.INSTANCE;
      }
    
      private enum ByteArrayFunnel implements Funnel<byte[]> {
        INSTANCE;
    
        @Override
        public void funnel(byte[] from, PrimitiveSink into) {
          into.putBytes(from);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

      public <E extends Comparable<?>> E min(E a, E b) {
        return NaturalOrdering.INSTANCE.max(a, b);
      }
    
      @Override
      public <E extends Comparable<?>> E min(E a, E b, E c, E... rest) {
        return NaturalOrdering.INSTANCE.max(a, b, c, rest);
      }
    
      @Override
      public <E extends Comparable<?>> E min(Iterator<E> iterator) {
        return NaturalOrdering.INSTANCE.max(iterator);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ElementOrder.java

        this.comparator = comparator;
        checkState((type == Type.SORTED) == (comparator != null));
      }
    
      /** Returns an instance which specifies that no ordering is guaranteed. */
      public static <S> ElementOrder<S> unordered() {
        return new ElementOrder<>(Type.UNORDERED, null);
      }
    
      /**
       * Returns an instance which specifies that ordering is guaranteed to be always be the same across
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 6.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Interners.java

        }
      }
    
      /** Returns a fresh {@link InternerBuilder} instance. */
      public static InternerBuilder newBuilder() {
        return new InternerBuilder();
      }
    
      /**
       * Returns a new thread-safe interner which retains a strong reference to each instance it has
       * interned, thus preventing these instances from being garbage-collected. If this retention is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top