Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 434 for Supplied (0.05 seconds)

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

      }
    
      public void testOr_supplier_absent() {
        assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback")));
      }
    
      public void testOr_nullSupplier_absent() {
        Supplier<Object> nullSupplier = (Supplier<Object>) Suppliers.<@Nullable Object>ofInstance(null);
        Optional<Object> absentOptional = Optional.absent();
        assertThrows(NullPointerException.class, () -> absentOptional.or(nullSupplier));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java

    import java.nio.file.Path;
    import java.util.function.Supplier;
    
    import org.apache.maven.api.annotations.Nonnull;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * A thin wrapper for a {@link Path} that serves as "current working directory" value. Hence, this class
     * is mutable (as CWD may be changed), but allows transition only to existing directories.
     */
    public final class CWD implements Supplier<Path> {
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Mar 24 14:09:05 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java

        PluginDescriptor get(Key key);
    
        default PluginDescriptor get(Key key, PluginDescriptorSupplier supplier)
                throws PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException {
            PluginDescriptor pd = get(key);
            if (pd == null) {
                pd = supplier.load();
                put(key, pd);
            }
            return pd;
        }
    
        void flush();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java

     * Transformations can be applied at three different stages:
     * <ol>
     *   <li>File model - The raw model as read directly from the file</li>
     *   <li>Raw model - The model after inheritance has been applied</li>
     *   <li>Effective model - The fully processed model with all interpolation and inheritance applied</li>
     * </ol>
     * <p>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        }
      }
    
      public void testForSupplier() {
        Supplier<Integer> supplier = new CountingSupplier();
        Function<@Nullable Object, Integer> function = Functions.forSupplier(supplier);
    
        assertEquals(1, (int) function.apply(null));
        assertEquals(2, (int) function.apply("foo"));
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forSupplier(supplier))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/MIENameTest.java

            if (bufferSupplierOrBytes instanceof byte[]) {
                buf = (byte[]) bufferSupplierOrBytes;
            } else {
                @SuppressWarnings("unchecked")
                java.util.function.Supplier<byte[]> sup = (java.util.function.Supplier<byte[]>) bufferSupplierOrBytes;
                buf = sup.get();
            }
    
            // Act + Assert
            Throwable t = assertThrows(expected, () -> new MIEName(buf));
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java

                RepositorySystemSession session);
    
        CacheRecord get(Key key);
    
        default CacheRecord get(Key key, PluginRealmSupplier supplier)
                throws PluginResolutionException, PluginContainerException {
            CacheRecord cr = get(key);
            if (cr == null) {
                CacheRecord tcr = supplier.load();
                cr = put(key, tcr.getRealm(), tcr.getArtifacts());
            }
            return cr;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  8. src/main/webapp/js/admin/bootstrap.min.js.map

    uriAttrs = [\n  'background',\n  'cite',\n  'href',\n  'itemtype',\n  'longdesc',\n  'poster',\n  'src',\n  'xlink:href'\n]\n\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i\n\nexport const DefaultWhitelist = {\n  // Global attributes allowed on any supplied element below.\n  '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n  a: ['target', 'href', 'title', 'rel'],\n  area: [],\n  b: [],\n  br: [],\n  col: [],\n  code: [],\n  div: [],\n  em: [],\n  hr: [],\n  h1: [],\n  h2: [],\n...
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 180.9K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        }
      }
    
      public void testForSupplier() {
        Supplier<Integer> supplier = new CountingSupplier();
        Function<@Nullable Object, Integer> function = Functions.forSupplier(supplier);
    
        assertEquals(1, (int) function.apply(null));
        assertEquals(2, (int) function.apply("foo"));
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forSupplier(supplier))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/CollectCollectors.java

    import java.util.EnumMap;
    import java.util.EnumSet;
    import java.util.LinkedHashMap;
    import java.util.TreeMap;
    import java.util.function.BinaryOperator;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import java.util.function.ToIntFunction;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import org.jspecify.annotations.Nullable;
    
    /** Collectors utilities for {@code common.collect} internals. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.6K bytes
    - Click Count (0)
Back to Top