Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for outer (0.22 sec)

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

        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
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        }
        if (cause instanceof Exception) {
          throw (Exception) cause;
        }
        if (cause instanceof Error) {
          throw (Error) cause;
        }
        // The cause is a weird kind of Throwable, so throw the outer exception.
        throw e;
      }
    
      private static Set<Method> findInterruptibleMethods(Class<?> interfaceType) {
        Set<Method> set = Sets.newHashSet();
        for (Method m : interfaceType.getMethods()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java

        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
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
    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)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      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;
        private Map<K, V> delegate;
    
    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)
  5. guava-tests/test/com/google/common/collect/SynchronizedNavigableSetTest.java

      protected <E> NavigableSet<E> create() {
        TestSet<E> inner =
            new TestSet<>(new TreeSet<E>((Comparator<E>) Ordering.natural().nullsFirst()), null);
        NavigableSet<E> outer = Synchronized.navigableSet(inner, null);
        inner.mutex = outer;
        return outer;
      }
    
      static class TestSet<E> extends SynchronizedSetTest.TestSet<E> implements NavigableSet<E> {
    
        TestSet(NavigableSet<E> delegate, @Nullable Object mutex) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SynchronizedNavigableSetTest.java

      protected <E> NavigableSet<E> create() {
        TestSet<E> inner =
            new TestSet<>(new TreeSet<E>((Comparator<E>) Ordering.natural().nullsFirst()), MUTEX);
        NavigableSet<E> outer = Synchronized.navigableSet(inner, MUTEX);
        return outer;
      }
    
      static class TestSet<E> extends SynchronizedSetTest.TestSet<E> implements NavigableSet<E> {
    
        TestSet(NavigableSet<E> delegate, @Nullable Object mutex) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

    public class SynchronizedDequeTest extends TestCase {
    
      protected Deque<String> create() {
        TestDeque<String> inner = new TestDeque<>();
        Deque<String> outer = Synchronized.deque(inner, inner.mutex);
        outer.add("foo"); // necessary because we try to remove elements later on
        return outer;
      }
    
      private static final class TestDeque<E> implements Deque<E> {
        private final Deque<E> delegate = Lists.newLinkedList();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

      }
    
      /**
       * The only reference to Unsafe is in this nested class. We set things up so that if
       * Unsafe.theUnsafe is inaccessible, the attempt to load the nested class fails, and the outer
       * class's static initializer can fall back on a non-Unsafe version.
       */
      private enum UnsafeByteArray implements LittleEndianBytes {
        // Do *not* change the order of these constants!
        UNSAFE_LITTLE_ENDIAN {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java

                        SetMultimap<String, String> outer =
                            Synchronized.setMultimap(inner, inner.mutex);
                        for (Entry<String, String> entry : entries) {
                          outer.put(entry.getKey(), entry.getValue());
                        }
                        return outer;
                      }
                    })
                .named("Synchronized.setMultimap")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Partially.java

    import java.lang.annotation.Documented;
    import java.lang.annotation.ElementType;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Outer class that exists solely to let us write {@code Partially.GwtIncompatible} instead of plain
     * {@code GwtIncompatible}. This is more accurate for {@link Futures#catching}, which is available
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 05 22:27:35 GMT 2021
    - 1.9K bytes
    - Viewed (0)
Back to top