Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 250 for reversed (0.17 sec)

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

      }
    
      @LazyInit @CheckForNull private transient GeneralRange<T> reverse;
    
      /** Returns the same range relative to the reversed comparator. */
      GeneralRange<T> reverse() {
        GeneralRange<T> result = reverse;
        if (result == null) {
          result =
              new GeneralRange<>(
                  Ordering.from(comparator).reverse(),
                  hasUpperBound,
                  getUpperEndpoint(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/BiMap.java

     * that of its keys. This constraint enables bimaps to support an "inverse view", which is another
     * bimap containing the same entries as this bimap but with reversed keys and values.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableBiMap}
     *   <li>{@link HashBiMap}
     *   <li>{@link EnumBiMap}
     *   <li>{@link EnumHashBiMap}
     * </ul>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Lists.java

       *
       * @since 7.0
       */
      public static <T extends @Nullable Object> List<T> reverse(List<T> list) {
        if (list instanceof ImmutableList) {
          // Avoid nullness warnings.
          List<?> reversed = ((ImmutableList<?>) list).reverse();
          @SuppressWarnings("unchecked")
          List<T> result = (List<T>) reversed;
          return result;
        } else if (list instanceof ReverseList) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/GeneralRange.java

      }
    
      @LazyInit @CheckForNull private transient GeneralRange<T> reverse;
    
      /** Returns the same range relative to the reversed comparator. */
      GeneralRange<T> reverse() {
        GeneralRange<T> result = reverse;
        if (result == null) {
          result =
              new GeneralRange<>(
                  Ordering.from(comparator).reverse(),
                  hasUpperBound,
                  getUpperEndpoint(),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

       */
      public static InetAddress fromLittleEndianByteArray(byte[] addr) throws UnknownHostException {
        byte[] reversed = new byte[addr.length];
        for (int i = 0; i < addr.length; i++) {
          reversed[i] = addr[addr.length - i - 1];
        }
        return InetAddress.getByAddress(reversed);
      }
    
      /**
       * Returns a new InetAddress that is one less than the passed in address. This method works for
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/base/Converter.java

    /**
     * A function from {@code A} to {@code B} with an associated <i>reverse</i> function from {@code B}
     * to {@code A}; used for converting back and forth between <i>different representations of the same
     * information</i>.
     *
     * <h3>Invertibility</h3>
     *
     * <p>The reverse operation <b>may</b> be a strict <i>inverse</i> (meaning that {@code
     * converter.reverse().convert(converter.convert(a)).equals(a)} is always true). However, it is very
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PreconditionsTest.java

          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("end index (2) must not be greater than size (1)");
        }
      }
    
      public void testCheckPositionIndexes_reversed() {
        try {
          Preconditions.checkPositionIndexes(1, 0, 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
          assertThat(expected)
              .hasMessageThat()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("end index (2) must not be greater than size (1)");
        }
      }
    
      public void testCheckPositionIndexes_reversed() {
        try {
          Preconditions.checkPositionIndexes(1, 0, 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
          assertThat(expected)
              .hasMessageThat()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/Graphs.java

      }
    
      // Graph mutation methods
    
      // Graph view methods
    
      /**
       * Returns a view of {@code graph} with the direction (if any) of every edge reversed. All other
       * properties remain intact, and further updates to {@code graph} will be reflected in the view.
       */
      public static <N> Graph<N> transpose(Graph<N> graph) {
        if (!graph.isDirected()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultimap.java

      /**
       * Returns an immutable multimap which is the inverse of this one. For every key-value mapping in
       * the original, the result will have a mapping with key and value reversed.
       *
       * @since 11.0
       */
      public abstract ImmutableMultimap<V, K> inverse();
    
      /**
       * Guaranteed to throw an exception and leave the multimap unmodified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
Back to top