Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 172 for Wrap (0.13 sec)

  1. android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java

    import java.util.concurrent.TimeUnit;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An abstract {@code ScheduledExecutorService} that allows subclasses to {@linkplain
     * #wrapTask(Callable) wrap} tasks before they are submitted to the underlying executor.
     *
     * <p>Note that task wrapping may occur even if the task is never executed.
     *
     * @author Luke Sandberg
     */
    @J2ktIncompatible
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/TimeoutTest.java

                super(delegate);
                this.wrapper = wrapper;
            }
    
    
            @Override
            protected CIFSContext wrap ( CIFSContext newContext ) {
                return new NSOverrideWrapper(super.wrap(newContext), this.wrapper);
            }
    
    
            @Override
            public NameServiceClient getNameServiceClient () {
                return this.wrapper;
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.isWrapperType(void.class)).isFalse();
      }
    
      public void testWrap() {
        assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(String.class)).isSameInstanceAs(String.class);
      }
    
      public void testUnwrap() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        SortedMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
        SortedMap<Integer, String> map2 = ImmutableSortedMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingQueueTest.java

                Queue.class,
                new Function<Queue, Queue>() {
                  @Override
                  public Queue apply(Queue delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      private static <T> Queue<T> wrap(final Queue<T> delegate) {
        return new ForwardingQueue<T>() {
          @Override
          protected Queue<T> delegate() {
            return delegate;
          }
        };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        NavigableMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
        NavigableMap<Integer, String> map2 = ImmutableSortedMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

          ImmutableMap.of(
              '\n', "<newline>",
              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
            new ArrayBasedCharEscaper(NO_REPLACEMENTS, 'A', 'Z') {
              @Override
              protected char[] escapeUnsafe(char c) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

                    this.openFlags &= ~ ( SmbConstants.O_CREAT | SmbConstants.O_TRUNC );
                }
    
                init(th);
            }
            catch ( CIFSException e ) {
                throw SmbException.wrap(e);
            }
        }
    
    
        /**
         * @throws SmbException
         * 
         */
        SmbFileInputStream ( SmbFile file, SmbTreeHandleImpl th, SmbFileHandleImpl fh ) throws SmbException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingMultimapTest.java

                    return wrap((Multimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        Multimap<Integer, String> map1 = ImmutableMultimap.of(1, "one");
        Multimap<Integer, String> map2 = ImmutableMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes)).hash());
        int off = random.nextInt(size);
        int len = random.nextInt(size - off);
        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes, off, len)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes, off, len)).hash());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
Back to top