Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,388 for New (0.56 sec)

  1. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        testRotate(new long[] {1, 2}, -1, new long[] {2, 1});
        testRotate(new long[] {1, 2}, -2, new long[] {1, 2});
        testRotate(new long[] {1, 2}, 0, new long[] {1, 2});
        testRotate(new long[] {1, 2}, 1, new long[] {2, 1});
        testRotate(new long[] {1, 2}, 2, new long[] {1, 2});
        testRotate(new long[] {1, 2}, 3, new long[] {2, 1});
    
        testRotate(new long[] {1, 2, 3}, -5, new long[] {3, 1, 2});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

      }
    
      public void testUnexpectedException() {
        IteratorTester<Integer> tester =
            new IteratorTester<Integer>(
                1, MODIFIABLE, newArrayList(1), IteratorTester.KnownOrder.KNOWN_ORDER) {
              @Override
              protected Iterator<Integer> newTargetIterator() {
                return new ThrowingIterator<>(new IllegalStateException());
              }
            };
        assertFailure(tester);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractService.java

            switch (previous) {
              case NEW:
                snapshot = new StateSnapshot(TERMINATED);
                enqueueTerminatedEvent(NEW);
                break;
              case STARTING:
                snapshot = new StateSnapshot(STARTING, true, null);
                enqueueStoppingEvent(STARTING);
                doCancelStart();
                break;
              case RUNNING:
                snapshot = new StateSnapshot(STOPPING);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        Object one = new Object();
        assertNull(map.put(one, one));
        assertSame(one, map.get(one));
        assertTrue(map.containsKey(one));
        assertTrue(map.containsValue(one));
        Object two = new Object();
        assertSame(one, map.replace(one, two));
        assertTrue(map.containsKey(one));
        assertFalse(map.containsValue(one));
        Object three = new Object();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

     *
     * @author Kevin Bourrillion
     */
    @GwtIncompatible
    public class TestsForMapsInJavaUtil {
    
      public static Test suite() {
        return new TestsForMapsInJavaUtil().allTests();
      }
    
      public Test allTests() {
        TestSuite suite = new TestSuite("java.util Maps");
        suite.addTest(testsForCheckedMap());
        suite.addTest(testsForCheckedNavigableMap());
        suite.addTest(testsForCheckedSortedMap());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

     *
     * @author Kevin Bourrillion
     */
    @GwtIncompatible
    public class TestsForMapsInJavaUtil {
    
      public static Test suite() {
        return new TestsForMapsInJavaUtil().allTests();
      }
    
      public Test allTests() {
        TestSuite suite = new TestSuite("java.util Maps");
        suite.addTest(testsForCheckedMap());
        suite.addTest(testsForCheckedSortedMap());
        suite.addTest(testsForEmptyMap());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 17K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteStreams.java

        if (size < 0) {
          throw new IllegalArgumentException(String.format("Invalid size: %s", size));
        }
        return newDataOutput(new ByteArrayOutputStream(size));
      }
    
      /**
       * Returns a new {@link ByteArrayDataOutput} instance which writes to the given {@code
       * ByteArrayOutputStream}. The given output stream is not reset before being written to by the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                                new SessionScopeModule(container.lookup(SessionScope.class)),
                                new MojoExecutionScopeModule(container.lookup(MojoExecutionScope.class)),
                                new PluginConfigurationModule(plugin.getDelegate()));
            } catch (ComponentLookupException | CycleDetectedInComponentGraphException e) {
                throw new PluginContainerException(
                        plugin,
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

            Build build = new Build();
            build.setDirectory(expected.substring(0, expected.length() - "/classes".length()));
    
            Model model = new Model();
            model.setBuild(build);
    
            MavenProject project = new MavenProject(model);
            project.setFile(new File("pom.xml").getCanonicalFile());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        private final Completion completed;
    
        static TimedThread createWithDelay(long countdownInMillis) {
          return new TimedThread(countdownInMillis);
        }
    
        private TimedThread(long expectedCompletionWaitMillis) {
          completed = new Completion(expectedCompletionWaitMillis);
          thread = new Thread(new JoinTarget(expectedCompletionWaitMillis));
          thread.start();
        }
    
        void joinSuccessfully() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
Back to top