Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for owners (0.25 sec)

  1. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

    import static com.google.common.base.StandardSystemProperty.OS_NAME;
    import static com.google.common.truth.Truth.assertThat;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_READ;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_WRITE;
    import static org.junit.Assert.assertThrows;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.nio.file.attribute.PosixFileAttributeView;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          }
        }
      }
    
      public void testResolveNestedClass() {
        assertEquals(String.class, new Owner.Nested<String>() {}.getTypeArgument());
      }
    
      @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports
      public void testResolveInnerClass() {
        assertEquals(String.class, new Owner<Integer>().new Inner<String>() {}.getTypeArgument());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeVisitor.java

       */
      public final void visit(@Nullable Type... types) {
        for (Type type : types) {
          if (type == null || !visited.add(type)) {
            // null owner type, or already visited;
            continue;
          }
          boolean succeeded = false;
          try {
            if (type instanceof TypeVariable) {
              visitTypeVariable((TypeVariable<?>) type);
    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)
  4. android/guava/src/com/google/common/collect/ByFunctionOrdering.java

    import com.google.common.base.Objects;
    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An ordering that orders elements by applying an order to the result of a function on those
     * elements.
     */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * orders its elements according to their {@linkplain Comparable natural ordering}.
       */
      public MonitorBasedPriorityBlockingQueue() {
        q = new PriorityQueue<E>();
      }
    
      /**
       * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity that
       * orders its elements according to their {@linkplain Comparable natural ordering}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

       * </ul>
       */
      public static <T extends @Nullable Object> void testComparator(
          Comparator<? super T> comparator, List<T> valuesInExpectedOrder) {
        // This does an O(n^2) test of all pairs of values in both orders
        for (int i = 0; i < valuesInExpectedOrder.size(); i++) {
          T t = valuesInExpectedOrder.get(i);
    
          for (int j = 0; j < i; j++) {
            T lesser = valuesInExpectedOrder.get(j);
            assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

        Class<X> localExceptionType = exceptionType;
        F localFallback = fallback;
        if (localInputFuture == null | localExceptionType == null | localFallback == null
            // This check, unlike all the others, is a volatile read
            || isCancelled()) {
          return;
        }
        inputFuture = null;
    
        // For an explanation of the cases here, see the comments on AbstractTransformFuture.run.
        V sourceResult = null;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/Invokable.java

     * #getParameters} etc.
     *
     * <p>In addition to convenience methods, {@link TypeToken#method} and {@link TypeToken#constructor}
     * will resolve the type parameters of the method or constructor in the context of the owner type,
     * which may be a subtype of the declaring class. For example:
     *
     * <pre>{@code
     * Method getMethod = List.class.getMethod("get", int.class);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Crc32cHashFunction.java

         * crc2 = int2
         * crc3 = int3
         *
         * ...so we set crc0 so that computeForWord(crc0) = -1 and xoring it with the first int
         * gives us the desired result.  computeForWord(0) == 0, so all the others do the right thing.
         */
        private int crc0 = INVERSE_COMPUTE_FOR_WORD_OF_ALL_1S;
        private int crc1 = 0;
        private int crc2 = 0;
        private int crc3 = 0;
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 21.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
        assertEquals(Outer.class, owner.getRawType());
        // This returns a strange ? extends Sub2<Y> type, which isn't ideal.
        TypeToken<?> unused = new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub2.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top