Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for Erling (0.22 sec)

  1. android/guava/src/com/google/common/collect/Interners.java

                return result;
              }
            }
    
            // didn't see it, trying to put it instead...
            Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
            if (sneaky == null) {
              return sample;
            } else {
              /* Someone beat us to it! Trying again...
               *
               * Technically this loop not guaranteed to terminate, so theoretically (extremely
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        assertEquals(1, map.size());
        assertEquals(ImmutableList.of(1), map.getInstance(type));
      }
    
      public void testGenericArrayType() {
        @SuppressWarnings("unchecked") // Trying to test generic array
        ImmutableList<Integer>[] array =
            (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)};
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        GoodEquals(@SuppressWarnings("unused") NotInstantiable x) {
          this.a = "x";
          this.b = -1;
        }
    
        // will keep trying
        public GoodEquals(@SuppressWarnings("unused") NotInstantiable x, int b) {
          this.a = "x";
          this.b = b;
        }
    
        // keep trying
        @SuppressWarnings("unused")
        static GoodEquals create(int a, int b) {
          throw new RuntimeException();
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

         * the set of projects we want to build then add an edge, otherwise throw
         * the edge away because that dependency is not within the set of projects
         * we are trying to build. we assume a closed set.</li>
         * <li>do a topo sort on the graph that remains.</li>
         * </ul>
         * @throws DuplicateProjectException if any projects are duplicated by id
         */
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Sep 22 06:02:04 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        // The task thread waits for the latch, so we expect a timeout here.
        try {
          future.get(20, MILLISECONDS);
          fail("Should have timed out trying to get the value.");
        } catch (TimeoutException expected) {
        } finally {
          latch.countDown();
        }
      }
    
      /**
       * Tests that a canceled future throws a cancellation exception.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
     * Iterator#remove} operations. This utility takes the brute-force approach of trying <i>all</i>
     * possible sequences of these operations, up to a given number of steps. So, if the caller
     * specifies to use <i>n</i> steps, a total of <i>3^n</i> tests are actually performed.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public void testAssignableParameterizedTypeToClass() {
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<List> tokL = new TypeToken<List>() {};
        assertTrue(tokL.isSupertypeOf(StringList.class));
        assertTrue(tokL.isSupertypeOf(StringList.class.getGenericInterfaces()[0]));
    
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<Second> tokS = new TypeToken<Second>() {};
    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)
  8. android/guava/src/com/google/common/io/ReaderInputStream.java

        reader.close();
      }
    
      @Override
      public int read() throws IOException {
        return (read(singleByte) == 1) ? UnsignedBytes.toInt(singleByte[0]) : -1;
      }
    
      // TODO(chrisn): Consider trying to encode/flush directly to the argument byte
      // buffer when possible.
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        // Obey InputStream contract.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Strings.java

       * used for another unchecked exception, an exception during string formatting would serve little
       * purpose except to supplant the real information you were trying to provide. These are the cases
       * this method is made for; it instead generates a best-effort string with all supplied argument
       * values present. This method is also useful in environments such as GWT where {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

            .addEqualityGroup(ImmutableDoubleArray.of(1, 2, 3))
            .testEquals();
      }
    
      /**
       * This is probably a weird and hacky way to test what we're really trying to test, but hey, it
       * caught a bug.
       */
      public void testTrimmed() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(0, 1, 3);
        assertDoesntActuallyTrim(iia);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
Back to top