Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 294 for Kappen (0.17 sec)

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

        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return CloserTest.getSuppressed(expected).length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static CharSource newNormalCharSource() {
        return CharSource.wrap("ABC");
      }
    
      private static CharSink newNormalCharSink() {
        return new CharSink() {
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testRemovalNotification_clear_basher() throws InterruptedException {
        // If a clear() happens close to the end of computation, one of two things should happen:
        // - computation ends first: the removal listener is called, and the cache does not contain the
        //   key/value pair
        // - clear() happens first: the removal listener is not called, and the cache contains the pair
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
       * the putIfAbsent returns a non-null value, and the case where the replace() of an observed zero
       * fails.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

        @Override
        public Appendable append(CharSequence csq) {
          result.append(csq);
          return this;
        }
    
        @Override
        public Appendable append(char c) {
          result.append(c);
          return this;
        }
    
        @Override
        public Appendable append(CharSequence csq, int start, int end) {
          result.append(csq, start, end);
          return this;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Joiner.java

            appendable.append(joiner.toString(entry.getKey()));
            appendable.append(keyValueSeparator);
            appendable.append(joiner.toString(entry.getValue()));
            while (parts.hasNext()) {
              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/MediaType.java

          toString = result;
        }
        return result;
      }
    
      private String computeToString() {
        StringBuilder builder = new StringBuilder().append(type).append('/').append(subtype);
        if (!parameters.isEmpty()) {
          builder.append("; ");
          Multimap<String, String> quotedParameters =
              Multimaps.transformValues(
                  parameters,
                  (String value) ->
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

        // Double.toString(Math.PI).length() == 17
        StringBuilder b = new StringBuilder((17 + 2) * (iMax + 1));
        b.append('[');
        for (int i = 0; ; i++) {
          b.append(longBitsToDouble(longs.get(i)));
          if (i == iMax) {
            return b.append(']').toString();
          }
          b.append(',').append(' ');
        }
      }
    
      /**
       * Saves the state to a stream (that is, serializes it).
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/LineBuffer.java

          switch (cbuf[pos]) {
            case '\r':
              line.append(cbuf, start, pos - start);
              sawReturn = true;
              if (pos + 1 < end) {
                if (finishLine(cbuf[pos + 1] == '\n')) {
                  pos++;
                }
              }
              start = pos + 1;
              break;
    
            case '\n':
              line.append(cbuf, start, pos - start);
              finishLine(true);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        /* The following fails to compile:
         *
         * The method append(Iterable<? extends FluentIterableTest.A>) in the type
         * FluentIterable<FluentIterableTest.A> is not applicable for the arguments
         * (Iterable<FluentIterableTest.B>)
         */
        // FluentIterable.from(aIterable).append(bIterable);
    
        /* The following fails to compile:
         *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          }
    
          @Override
          public String getExpected(String data) {
            /*
             * Get what the byte sink factory would expect for no written bytes, then append expected
             * string to that.
             */
            byte[] factoryExpectedForNothing = factory.getExpected(new byte[0]);
            return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
Back to top