Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 400 for Name (0.12 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper add(String name, boolean value) {
          return addUnconditionalHolder(name, String.valueOf(value));
        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EnumsTest.java

        // ClassLoader.
        Set<Object> shadowConstants = new HashSet<>();
        for (TestEnum constant : TestEnum.values()) {
          Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, constant.name());
          assertThat(result).isPresent();
          shadowConstants.add(result.get());
        }
        assertEquals(ImmutableSet.<Object>copyOf(shadowTestEnum.getEnumConstants()), shadowConstants);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTester.java

                charSourceFactory, string, name + ".asCharSource[Charset]", desc));
        return suite;
      }
    
      static TestSuite suiteForBytes(
          ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) {
        TestSuite suite = new TestSuite(name + " [" + desc + "]");
        for (Method method : testMethods) {
          suite.addTest(new ByteSourceTester(factory, bytes, name, desc, method));
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ListsImplTest.java

      public abstract static class ListExample {
    
        private final String name;
        private final Modifiability modifiability;
    
        protected ListExample(String name, Modifiability modifiability) {
          this.name = name;
          this.modifiability = modifiability;
        }
    
        /** Gets the name of the example */
        public String getName() {
          return name;
        }
    
        /** Creates a new list with the given contents. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

              public Class<?> loadClass(String name) throws ClassNotFoundException {
                if (name.startsWith(concurrentPackage)
                    // Use other classloader for ListenableFuture, so that the objects can interact
                    && !ListenableFuture.class.getName().equals(name)) {
                  synchronized (loadedClasses) {
                    Class<?> toReturn = loadedClasses.get(name);
                    if (toReturn == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

        String save = System.getProperty("user.name");
        System.setProperty("user.name", "-this-is-definitely-not-the-username-we-are-running-as//?");
        try {
          TempFileCreator.testMakingUserPermissionsFromScratch();
          assertThat(isJava8()).isFalse();
        } catch (IOException expectedIfJava8) {
          assertThat(isJava8()).isTrue();
        } finally {
          System.setProperty("user.name", save);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Comparator<? super K> comparator) {
        return fromEntries(checkNotNull(comparator), false, entries);
      }
    
      /**
       * Returns an immutable map containing the same entries as the provided sorted map, with the same
       * ordering.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/BaseEncoding.java

        }
    
        private Alphabet(String name, char[] chars, byte[] decodabet, boolean ignoreCase) {
          this.name = checkNotNull(name);
          this.chars = checkNotNull(chars);
          try {
            this.bitsPerChar = log2(chars.length, UNNECESSARY);
          } catch (ArithmeticException e) {
            throw new IllegalArgumentException("Illegal alphabet length " + chars.length, e);
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        assertFalse(completed);
        thread.start();
        thread.join();
        assertTrue(completed);
    
        // Creating a new thread from the same ThreadFactory will have the same
        // pool ID but a thread ID of 2.
        Thread thread2 = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread2, 2);
        assertEquals(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * <pre>{@code
     * final String name = ...;
     * inFlight.add(name);
     * ListenableFuture<Result> future = service.query(name);
     * future.addListener(new Runnable() {
     *   public void run() {
     *     processedCount.incrementAndGet();
     *     inFlight.remove(name);
     *     lastProcessed.set(name);
     *     logger.info("Done with {0}", name);
     *   }
     * }, executor);
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
Back to top