Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for Skinner (0.21 sec)

  1. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.graph.GraphConstants.INNER_CAPACITY;
    import static com.google.common.graph.GraphConstants.INNER_LOAD_FACTOR;
    
    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.Multiset;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

            return false;
          }
          if ((i > 2) && (compareElements(getGrandparentIndex(i), i) > 0)) {
            return false;
          }
          return true;
        }
    
        // These would be static if inner classes could have static members.
    
        private int getLeftChildIndex(int i) {
          return i * 2 + 1;
        }
    
        private int getRightChildIndex(int i) {
          return i * 2 + 2;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

     *
     * @author Kurt Alfred Kluever
     */
    public class SynchronizedQueueTest extends TestCase {
    
      protected Queue<String> create() {
        TestQueue<String> inner = new TestQueue<>();
        Queue<String> outer = Synchronized.queue(inner, inner.mutex);
        outer.add("foo"); // necessary because we try to remove elements later on
        return outer;
      }
    
      private static final class TestQueue<E> implements Queue<E> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedSetTest.java

                new TestStringSetGenerator() {
                  @Override
                  protected Set<String> create(String[] elements) {
                    TestSet<String> inner = new TestSet<>(new HashSet<String>(), MUTEX);
                    Set<String> outer = Synchronized.set(inner, inner.mutex);
                    Collections.addAll(outer, elements);
                    return outer;
                  }
                })
            .named("Synchronized.set")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        // Owner is subclassed
        assertHasTypeVariable(new From<Integer>() {}.new To<String>().type());
        assertHasTypeVariable(new From<T>() {}.new To<String>().type());
    
        // Inner is subclassed
        assertNoTypeVariable(new From<Integer>().new To<String>() {}.type());
        assertHasTypeVariable(new From<Integer>().new To<T>() {}.type());
        assertHasTypeVariable(new From<T>().new To<String>() {}.type());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java

                .createTestSuite());
        return suite;
      }
    
      @Override
      protected <K, V> BiMap<K, V> create() {
        TestBiMap<K, V> inner = new TestBiMap<>(HashBiMap.<K, V>create(), mutex);
        BiMap<K, V> outer = Synchronized.biMap(inner, mutex);
        return outer;
      }
    
      public static final class SynchronizedHashBiMapGenerator extends TestStringBiMapGenerator {
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

    public class SynchronizedMapTest extends TestCase {
      public final Object mutex = new Integer(1); // something Serializable
    
      protected <K, V> Map<K, V> create() {
        TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex);
        Map<K, V> outer = Synchronized.map(inner, mutex);
        return outer;
      }
    
      static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable {
        public final Object mutex;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      @SuppressWarnings("unchecked")
      final Segment<K, V, E, S>[] newSegmentArray(int ssize) {
        return (Segment<K, V, E, S>[]) new Segment<?, ?, ?, ?>[ssize];
      }
    
      // Inner Classes
    
      /**
       * Segments are specialized versions of hash tables. This subclass inherits from ReentrantLock
       * opportunistically, just to simplify some locking and avoid separate construction.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          fail();
        } catch (CancellationException expected) {
          // There should be two CancellationException chained together.  The outer one should have the
          // stack trace of where the get() call was made, and the inner should have the stack trace of
          // where the immediateCancelledFuture() call was made.
          List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/EqualsTester.java

                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
       * Since it is a private inner class, the invoker can never pass in an instance to the tester
       */
      private enum NotAnInstance {
        EQUAL_TO_NOTHING;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top