Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Contact (0.16 sec)

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

    import java.util.Set;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests representing the contract of {@link Map}. Concrete subclasses of this base class test
     * conformance of concrete {@link Map} subclasses to that contract.
     *
     * @param <K> the type of keys used by the maps under test
     * @param <V> the type of mapped values used the maps under test
     * @author George van den Driessche
    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/Iterables.java

          return Iterators.unmodifiableIterator(iterable.iterator());
        }
    
        @Override
        public String toString() {
          return iterable.toString();
        }
        // no equals and hashCode; it would break the contract!
      }
    
      /** Returns the number of elements in {@code iterable}. */
      public static int size(Iterable<?> iterable) {
        return (iterable instanceof Collection)
            ? ((Collection<?>) iterable).size()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

              // Checking subtype between declared and actual type bounds
              // adds recursive isSubtypeOf() call and feels complicated.
              // There is no contract one way or another as long as isSubtypeOf() works as expected.
              combined.addAll(asList(typeParam.getBounds()));
              if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound.
    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)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

     *
     * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by the
     * {@link Comparable} class specification. Otherwise, the resulting multiset will violate the {@link
     * java.util.Collection} contract, which is specified in terms of {@link Object#equals}.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multiset">{@code Multiset}</a>.
     *
    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)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          // checking isAcquiredByCurrentThread(). For ordered locks, however, this
          // can happen because multiple locks may share the same LockGraphNode. In
          // this situation, throw an IllegalStateException as defined by contract
          // described in the documentation of WithExplicitOrdering.
          Preconditions.checkState(
              this != acquiredLock,
              "Attempted to acquire multiple locks with the same rank %s",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        mmHeap.addAll(Lists.newArrayList(1, 2, 3, 4, 47, 1, 5, 3, 0));
        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        assertEquals(9, mmHeap.size());
        mmHeap.remove(5);
        assertEquals(8, mmHeap.size());
        assertTrue("Heap is not intact after remove()", mmHeap.isIntact());
        assertEquals(47, (int) mmHeap.pollLast());
        assertEquals(4, (int) mmHeap.pollLast());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. LICENSE

          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
          direction or management of such entity, whether by contract or
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
          outstanding shares, or (iii) beneficial ownership of such entity.
    
          "You" (or "Your") shall mean an individual or Legal Entity
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 22 18:59:39 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashCodeTest.java

        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
      public void testRoundTripHashCodeUsingFromString() {
        HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Converter.java

          return b == null ? null : checkNotNull(doBackward(b));
        } else {
          return unsafeDoBackward(b);
        }
      }
    
      /*
       * LegacyConverter violates the contract of Converter by allowing its doForward and doBackward
       * methods to accept null. We could avoid having unchecked casts in Converter.java itself if we
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

    import java.util.Set;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests representing the contract of {@link Map}. Concrete subclasses of this base class test
     * conformance of concrete {@link Map} subclasses to that contract.
     *
     * @param <K> the type of keys used by the maps under test
     * @param <V> the type of mapped values used the maps under test
     * @author George van den Driessche
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
Back to top