Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for EmptyContiguousSet (0.51 sec)

  1. guava/src/com/google/common/collect/EmptyContiguousSet.java

     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("rawtypes") // allow ungenerified Comparable types
    @ElementTypesAreNonnullByDefault
    final class EmptyContiguousSet<C extends Comparable> extends ContiguousSet<C> {
      EmptyContiguousSet(DiscreteDomain<C> domain) {
        super(domain);
      }
    
      @Override
      public C first() {
        throw new NoSuchElementException();
      }
    
      @Override
      public C last() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 28 18:35:00 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("rawtypes") // allow ungenerified Comparable types
    @ElementTypesAreNonnullByDefault
    final class EmptyContiguousSet<C extends Comparable> extends ContiguousSet<C> {
      EmptyContiguousSet(DiscreteDomain<C> domain) {
        super(domain);
      }
    
      @Override
      public C first() {
        throw new NoSuchElementException();
      }
    
      @Override
      public C last() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 28 18:35:00 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      private ContiguousSet<C> intersectionInCurrentDomain(Range<C> other) {
        return range.isConnected(other)
            ? ContiguousSet.create(range.intersection(other), domain)
            : new EmptyContiguousSet<C>(domain);
      }
    
      @Override
      ContiguousSet<C> headSetImpl(C toElement, boolean inclusive) {
        return intersectionInCurrentDomain(Range.upTo(toElement, BoundType.forBoolean(inclusive)));
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ContiguousSet.java

          // Per class spec, we are allowed to throw CCE if necessary
          empty = Range.compareOrThrow(afterLower, beforeUpper) > 0;
        }
    
        return empty
            ? new EmptyContiguousSet<C>(domain)
            : new RegularContiguousSet<C>(effectiveRange, domain);
      }
    
      /**
       * Returns a nonempty contiguous set containing all {@code int} values from {@code lower}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      }
    
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        ContiguousSet<Integer> empty = ContiguousSet.create(Range.closedOpen(1, 1), integers());
        assertTrue(empty instanceof EmptyContiguousSet);
        reserializeAndAssert(empty);
    
        ContiguousSet<Integer> regular = ContiguousSet.create(Range.closed(1, 3), integers());
        assertTrue(regular instanceof RegularContiguousSet);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      }
    
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        ContiguousSet<Integer> empty = ContiguousSet.create(Range.closedOpen(1, 1), integers());
        assertTrue(empty instanceof EmptyContiguousSet);
        reserializeAndAssert(empty);
    
        ContiguousSet<Integer> regular = ContiguousSet.create(Range.closed(1, 3), integers());
        assertTrue(regular instanceof RegularContiguousSet);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ContiguousSet.java

          // Per class spec, we are allowed to throw CCE if necessary
          empty = Range.compareOrThrow(afterLower, beforeUpper) > 0;
        }
    
        return empty
            ? new EmptyContiguousSet<C>(domain)
            : new RegularContiguousSet<C>(effectiveRange, domain);
      }
    
      /**
       * Returns a nonempty contiguous set containing all {@code int} values from {@code lower}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
Back to top