Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 327 for addr (0.52 sec)

  1. android/guava/src/com/google/common/net/InetAddresses.java

      public static InetAddress decrement(InetAddress address) {
        byte[] addr = address.getAddress();
        int i = addr.length - 1;
        while (i >= 0 && addr[i] == (byte) 0x00) {
          addr[i] = (byte) 0xff;
          i--;
        }
    
        checkArgument(i >= 0, "Decrementing %s would wrap.", address);
    
        addr[i]--;
        return bytesToInetAddress(addr);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/net/HostSpecifier.java

        // canonical form.
        InetAddress addr = null;
        try {
          addr = InetAddresses.forString(host);
        } catch (IllegalArgumentException e) {
          // It is not an IPv4 or IPv6 literal
        }
    
        if (addr != null) {
          return new HostSpecifier(InetAddresses.toUriString(addr));
        }
    
        // It is not any kind of IP address; must be a domain name or invalid.
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 05 09:18:40 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        private final Adder adder;
    
        FailsToForwardReturnValue(Adder adder) {
          this.adder = adder;
        }
    
        @Override
        public int add(int a, int b) {
          return adder.add(a, b) + 1;
        }
    
        @Override
        public String toString() {
          return adder.toString();
        }
      }
    
      private static class FailsToPropagateException implements Adder {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/LongAdder.java

      @Override
      final long fn(long v, long x) {
        return v + x;
      }
    
      /** Creates a new adder with initial sum of zero. */
      public LongAdder() {}
    
      /**
       * Adds the given value.
       *
       * @param x the value to add
       */
      @Override
      public void add(long x) {
        Cell[] as;
        long b, v;
        int[] hc;
        Cell a;
        int n;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/MoreObjects.java

        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper add(String name, char value) {
          return addUnconditionalHolder(name, String.valueOf(value));
        }
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultiset.java

       * @since 6.0 (source-compatible since 2.0)
       */
      public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) {
        return new Builder<E>().add(e1).add(e2).add(e3).add(e4).add(e5).add(e6).add(others).build();
      }
    
      /**
       * Returns an immutable multiset containing the given elements, in the "grouped iteration order"
       * described in the class documentation.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MutableGraph.java

    /**
     * A subinterface of {@link Graph} which adds mutation methods. When mutation is not required, users
     * should prefer the {@link Graph} interface.
     *
     * @author James Sexton
     * @author Joshua O'Madadhain
     * @param <N> Node parameter type
     * @since 20.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface MutableGraph<N> extends Graph<N> {
    
      /**
       * Adds {@code node} if it is not already present.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EvictingQueue.java

        return delegate;
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
       * of the queue is evicted to make room.
       *
       * @return {@code true} always
       */
      @Override
      @CanIgnoreReturnValue
      public boolean offer(E e) {
        return add(e);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSet.java

        }
    
        /**
         * Adds {@code element} to the {@code ImmutableSet}. If the {@code ImmutableSet} already
         * contains {@code element}, then {@code add} has no effect (only the previously added element
         * is retained).
         *
         * @param element the element to add
         * @return this {@code Builder} object
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

        @CanIgnoreReturnValue
        public abstract Builder<E> add(E element);
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableCollection} being built.
         *
         * <p>Note that each builder class overrides this method in order to covariantly return its own
         * type.
         *
         * @param elements the elements to add
         * @return this {@code Builder} instance
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
Back to top