Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for lives (0.17 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

       *
       * @see Collections#frequency
       */
      public static int frequency(Iterator<?> iterator, @CheckForNull Object element) {
        int count = 0;
        while (contains(iterator, element)) {
          // Since it lives in the same class, we know contains gets to the element and then stops,
          // though that isn't currently publicly documented.
          count++;
        }
        return count;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                        it.hasNext(); ) {
                    URL url = it.next();
                    List<String> lines;
                    try (InputStream is = url.openStream();
                            BufferedReader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {
                        lines = reader.lines()
                                .map(String::trim)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java

            if (relocationsEntries == null) {
                return null;
            }
            String[] entries = relocationsEntries.split(",");
            try (Stream<String> lines = Arrays.stream(entries)) {
                List<Relocation> relocationList = lines.filter(
                                l -> l != null && !l.trim().isEmpty())
                        .map(l -> {
                            boolean global;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Collections2.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Collections2 {
      private Collections2() {}
    
      /**
       * Returns the elements of {@code unfiltered} that satisfy a predicate. The returned collection is
       * a live view of {@code unfiltered}; changes to one affect the other.
       *
       * <p>The resulting collection's iterator does not support {@code remove()}, but all other
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  5. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                        action.accept(pid, line);
                    }
                }
            });
        }
    
        private static List<String> ps() {
            return run(determinePsCommand()).assertZeroExit().stdout.lines().collect(Collectors.toList());
        }
    
        private static String[] determinePsCommand() {
            if (isWindows()) {
                return new String[]{"wmic", "process", "get", "processid,commandline"};
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 26 09:46:00 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

            return set1.contains(element) ^ set2.contains(element);
          }
        };
      }
    
      /**
       * Returns the elements of {@code unfiltered} that satisfy a predicate. The returned set is a live
       * view of {@code unfiltered}; changes to one affect the other.
       *
       * <p>The resulting set's iterator does not support {@code remove()}, but all other set methods
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

        }
    
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
        Helpers.testComparator(arbitrary, list);
    
        assertEquals("Ordering.arbitrary()", arbitrary.toString());
      }
    
      @J2ktIncompatible // ArbitraryOrdering
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        }
    
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
        Helpers.testComparator(arbitrary, list);
    
        assertEquals("Ordering.arbitrary()", arbitrary.toString());
      }
    
      @J2ktIncompatible // ArbitraryOrdering
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        void setValue(S segment, E entry, V value);
      }
    
      /**
       * An entry in a hash table of a {@link Segment}.
       *
       * <p>Entries in the map can be in the following states:
       *
       * <p>Valid: - Live: valid key/value are set
       *
       * <p>Invalid: - Collected: key/value was partially collected, but not yet cleaned up
       */
      interface InternalEntry<K, V, E extends InternalEntry<K, V, E>> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

        }
    
        // Some better conventions for the test poms needs to be created and each of these tests
        // that represent a verification of a specification item needs to be a couple lines at most.
        // The expressions help a lot, but we need a clean to pick up a directory of POMs, automatically load
        // them into a resolver, create the expression to extract the data to validate the Model, and the URI
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
Back to top