Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for cut (0.01 sec)

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

     * always be represented by a pair of {@code Cut} instances.
     *
     * @author Kevin Bourrillion
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable {
      final C endpoint;
    
      Cut(C endpoint) {
        this.endpoint = endpoint;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Cut.java

     * always be represented by a pair of {@code Cut} instances.
     *
     * @author Kevin Bourrillion
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable {
      final C endpoint;
    
      Cut(C endpoint) {
        this.endpoint = endpoint;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Range.java

        checkNotNull(lowerType);
        checkNotNull(upperType);
    
        Cut<C> lowerBound =
            (lowerType == BoundType.OPEN) ? Cut.aboveValue(lower) : Cut.belowValue(lower);
        Cut<C> upperBound =
            (upperType == BoundType.OPEN) ? Cut.belowValue(upper) : Cut.aboveValue(upper);
        return create(lowerBound, upperBound);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeRangeMap.java

      }
    
      private void split(Cut<K> cut) {
        /*
         * The comments for this method will use | to indicate the cut point and ( ) to indicate the
         * bounds of ranges in the range map.
         */
        Entry<Cut<K>, RangeMapEntry<K, V>> mapEntryToSplit = entriesByLowerBound.lowerEntry(cut);
        if (mapEntryToSplit == null) {
          return;
        }
        // we know ( |
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Range.java

        checkNotNull(lowerType);
        checkNotNull(upperType);
    
        Cut<C> lowerBound =
            (lowerType == BoundType.OPEN) ? Cut.aboveValue(lower) : Cut.belowValue(lower);
        Cut<C> upperBound =
            (upperType == BoundType.OPEN) ? Cut.belowValue(upper) : Cut.aboveValue(upper);
        return create(lowerBound, upperBound);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeRangeMap.java

      }
    
      private TreeRangeMap(NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound) {
        this.entriesByLowerBound = entriesByLowerBound;
      }
    
      private static final class RangeMapEntry<K extends Comparable, V>
          extends AbstractMapEntry<Range<K>, V> {
        private final Range<K> range;
        private final V value;
    
        RangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  7. common/scripts/setup_env.sh

    if [[ "${LATEST_CACHED_IMAGE:-}" != "" ]]; then
      prefix="$(<<<"$IMAGE_VERSION" cut -d- -f1)"
      query="${TOOLS_REGISTRY_PROVIDER}/${PROJECT_ID}/${IMAGE_NAME}:${prefix}-*"
      latest="$("${CONTAINER_CLI}" images --filter=reference="${query}" --format "{{.CreatedAt|json}}~{{.Repository}}:{{.Tag}}~{{.CreatedSince}}" | sort -n -r | head -n1)"
      IMG="$(<<<"$latest" cut -d~ -f2)"
      if [[ "${IMG}" == "" ]]; then
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 04:52:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        }
      }
    
      private static final ImmutableList<Cut<Integer>> CUTS_TO_TEST;
    
      static {
        List<Cut<Integer>> cutsToTest = Lists.newArrayList();
        for (int i = MIN_BOUND - 1; i <= MAX_BOUND + 1; i++) {
          cutsToTest.add(Cut.belowValue(i));
          cutsToTest.add(Cut.aboveValue(i));
        }
        cutsToTest.add(Cut.<Integer>aboveAll());
        cutsToTest.add(Cut.<Integer>belowAll());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. src/bytes/example_test.go

    		before, after, found := bytes.Cut([]byte(s), []byte(sep))
    		fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found)
    	}
    	show("Gopher", "Go")
    	show("Gopher", "ph")
    	show("Gopher", "er")
    	show("Gopher", "Badger")
    	// Output:
    	// Cut("Gopher", "Go") = "", "pher", true
    	// Cut("Gopher", "ph") = "Go", "er", true
    	// Cut("Gopher", "er") = "Goph", "", true
    	// Cut("Gopher", "Badger") = "Gopher", "", false
    }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/RangeTest.java

        }
      }
    
      public void testOrderingCuts() {
        Cut<Integer> a = Range.lessThan(0).lowerBound;
        Cut<Integer> b = Range.atLeast(0).lowerBound;
        Cut<Integer> c = Range.greaterThan(0).lowerBound;
        Cut<Integer> d = Range.atLeast(1).lowerBound;
        Cut<Integer> e = Range.greaterThan(1).lowerBound;
        Cut<Integer> f = Range.greaterThan(1).upperBound;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top