Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,524 for _new (0.23 sec)

  1. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_alreadyStopped() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StopwatchTest.java

        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_alreadyStopped() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

      enum ReadStrategy {
        TO_BYTE_ARRAY_NEW_STRING {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            return new String(byteSource.read(), cs);
          }
        },
        USING_CHARSTREAMS_COPY {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            StringBuilder sb = new StringBuilder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

      enum ReadStrategy {
        TO_BYTE_ARRAY_NEW_STRING {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            return new String(byteSource.read(), cs);
          }
        },
        USING_CHARSTREAMS_COPY {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            StringBuilder sb = new StringBuilder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractService.java

        } else if (from == State.RUNNING) {
          listeners.enqueue(STOPPING_FROM_RUNNING_EVENT);
        } else {
          throw new AssertionError();
        }
      }
    
      private void enqueueTerminatedEvent(final State from) {
        switch (from) {
          case NEW:
            listeners.enqueue(TERMINATED_FROM_NEW_EVENT);
            break;
          case STARTING:
            listeners.enqueue(TERMINATED_FROM_STARTING_EVENT);
            break;
    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)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

      public void testRotate() {
        testRotate(new boolean[] {}, -1, new boolean[] {});
        testRotate(new boolean[] {}, 0, new boolean[] {});
        testRotate(new boolean[] {}, 1, new boolean[] {});
    
        testRotate(new boolean[] {true}, -2, new boolean[] {true});
        testRotate(new boolean[] {true}, -1, new boolean[] {true});
        testRotate(new boolean[] {true}, 0, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, new boolean[] {true});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      public void testRotate() {
        testRotate(new boolean[] {}, -1, new boolean[] {});
        testRotate(new boolean[] {}, 0, new boolean[] {});
        testRotate(new boolean[] {}, 1, new boolean[] {});
    
        testRotate(new boolean[] {true}, -2, new boolean[] {true});
        testRotate(new boolean[] {true}, -1, new boolean[] {true});
        testRotate(new boolean[] {true}, 0, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, new boolean[] {true});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        testRotate(new short[] {1, 2}, -3, new short[] {2, 1});
        testRotate(new short[] {1, 2}, -1, new short[] {2, 1});
        testRotate(new short[] {1, 2}, -2, new short[] {1, 2});
        testRotate(new short[] {1, 2}, 0, new short[] {1, 2});
        testRotate(new short[] {1, 2}, 1, new short[] {2, 1});
        testRotate(new short[] {1, 2}, 2, new short[] {1, 2});
        testRotate(new short[] {1, 2}, 3, new short[] {2, 1});
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        testRotate(new float[] {1, 2}, -3, new float[] {2, 1});
        testRotate(new float[] {1, 2}, -1, new float[] {2, 1});
        testRotate(new float[] {1, 2}, -2, new float[] {1, 2});
        testRotate(new float[] {1, 2}, 0, new float[] {1, 2});
        testRotate(new float[] {1, 2}, 1, new float[] {2, 1});
        testRotate(new float[] {1, 2}, 2, new float[] {1, 2});
        testRotate(new float[] {1, 2}, 3, new float[] {2, 1});
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  Object value = new Object();
                  result.put(key, value);
                  // add extra entries
                  result.put(value, key);
                }
                return result;
              }
            };
        LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader);
    
        Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()};
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
Back to top