Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 292 for Rourke (0.17 sec)

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

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

      public void testPutAllWithNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(k0(), null));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), null));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutAllWithNullKey() {
        Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(null, v0()));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/eventbus/DeadEvent.java

    public class DeadEvent {
    
      private final Object source;
      private final Object event;
    
      /**
       * Creates a new DeadEvent.
       *
       * @param source object broadcasting the DeadEvent (generally the {@link EventBus}).
       * @param event the event that could not be delivered.
       */
      public DeadEvent(Object source, Object event) {
        this.source = checkNotNull(source);
        this.event = checkNotNull(event);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/MathBenchmarking.java

      static double randomDouble(int maxExponent) {
        double result = RANDOM_SOURCE.nextDouble();
        result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1));
        return RANDOM_SOURCE.nextBoolean() ? result : -result;
      }
    
      /** Returns a random integer between zero and {@code MAX_EXPONENT}. */
      static int randomExponent() {
        return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1);
      }
    
      static double randomPositiveDouble() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
    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)
  6. android/guava-testlib/src/com/google/common/collect/testing/features/ConflictingRequirementsException.java

      private Set<Feature<?>> conflicts;
      private Object source;
    
      public ConflictingRequirementsException(
          String message, Set<Feature<?>> conflicts, Object source) {
        super(message);
        this.conflicts = conflicts;
        this.source = source;
      }
    
      public Set<Feature<?>> getConflicts() {
        return conflicts;
      }
    
      public Object getSource() {
        return source;
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
      public void testReadSingleByte() throws Exception {
        ByteSource source = newByteSource(0, 10);
        ByteSource joined = ByteSource.concat(source, source);
        assertEquals(20, joined.size());
        InputStream in = joined.openStream();
        assertFalse(in.markSupported());
        assertEquals(10, in.available());
        int total = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
      public void testReadSingleByte() throws Exception {
        ByteSource source = newByteSource(0, 10);
        ByteSource joined = ByteSource.concat(source, source);
        assertEquals(20, joined.size());
        InputStream in = joined.openStream();
        assertFalse(in.markSupported());
        assertEquals(10, in.available());
        int total = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.6K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
          binomialArguments[i][1] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials.length);
          int k = binomialArguments[i][1];
          binomialArguments[i][0] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials[k] - k) + k;
        }
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Test
      public void source_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.incidentNodes(E12).source()).isEqualTo(N1);
      }
    
      @Test
      public void source_edgeNotInGraph() {
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
                () -> network.incidentNodes(EDGE_NOT_IN_GRAPH).source());
        assertEdgeNotInGraphErrorMessage(e);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top