Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for cut (0.15 sec)

  1. 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;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. 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;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeSet.java

          if (key instanceof Cut) {
            try {
              @SuppressWarnings("unchecked") // we catch CCE's
              Cut<C> cut = (Cut<C>) key;
              if (!lowerBoundWindow.contains(cut)
                  || cut.compareTo(restriction.lowerBound) < 0
                  || cut.compareTo(restriction.upperBound) >= 0) {
                return null;
              } else if (cut.equals(restriction.lowerBound)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
  4. 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);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeRangeMap.java

      }
    
      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) {
          this(Range.create(lowerBound, upperBound), value);
        }
    
        RangeMapEntry(Range<K> range, V value) {
          this.range = range;
          this.value = value;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  6. 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());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  7. src/main/webapp/js/clipboard.min.js

    veAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Ele...
    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Sat May 28 04:16:16 GMT 2022
    - 10.5K bytes
    - Viewed (2)
  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());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  9. 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;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  10. 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
    }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top