Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1541 - 1550 of 1,770 for equal (0.04 sec)

  1. guava/src/com/google/common/base/Utf8.java

       * sequences, but encoding never reproduces these. Such byte sequences are <i>not</i> considered
       * well-formed.
       *
       * <p>This method returns {@code true} if and only if {@code Arrays.equals(bytes, new
       * String(bytes, UTF_8).getBytes(UTF_8))} does, but is more efficient in both time and space.
       */
      public static boolean isWellFormed(byte[] bytes) {
        return isWellFormed(bytes, 0, bytes.length);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

    import java.util.Map;
    import junit.framework.TestCase;
    
    /**
     * Unit tests of {@link TypeResolver}.
     *
     * @author Ben Yu
     */
    @AndroidIncompatible // lots of failures, possibly some related to bad equals() implementations?
    public class TypeResolverTest extends TestCase {
    
      public void testWhere_noMapping() {
        Type t = aTypeVariable();
        assertEquals(t, new TypeResolver().resolveType(t));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

            if (element == target) {
              it.remove();
              return true;
            }
          }
          return false;
        }
    
        /** Removes only this exact instance, not others that are equals() */
        private boolean removeExact(Object target) {
          for (int i = 0; i < size; i++) {
            if (queue[i] == target) {
              removeAt(i);
              return true;
            }
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServiceClientImpl.java

    
        /**
         *
         * @param svr
         * @return whether the given address is the configured broadcast address
         */
        private boolean isBroadcastAddress(InetAddress svr) {
            return svr.equals(this.baddr) || svr.getAddress()[3] == (byte) 0xFF;
        }
    
    
        protected InetAddress switchWINS () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 14 14:26:22 UTC 2022
    - 38.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/Config.java

         */
    
        public static boolean getBoolean( String key, boolean def ) {
            String b = getProperty( key );
            if( b != null ) {
                def = b.toLowerCase().equals( "true" );
            }
            return def;
        }
    
        /**
         * Retrieve an array of <tt>InetAddress</tt> created from a property
         * value containting a <tt>delim</tt> separated list of hostnames and/or
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/LoadingCache.java

       * returns {@code null}, returns a map containing null keys or values, or fails to return an entry
       * for each requested key.
       *
       * <p>Note that duplicate elements in {@code keys}, as determined by {@link Object#equals}, will
       * be ignored.
       *
       * @throws ExecutionException if a checked exception was thrown while loading the value. ({@code
       *     ExecutionException} is thrown <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        }
    
        int[] actual = Crc32cHashFunction.Crc32cHasher.BYTE_TABLE;
        assertTrue(
            "Expected: \n" + Arrays.toString(expected) + "\nActual:\n" + Arrays.toString(actual),
            Arrays.equals(expected, actual));
      }
    
      static int advanceOneBit(int next) {
        if ((next & 1) != 0) {
          return (next >>> 1) ^ CRC32C_GENERATOR_FLIPPED;
        } else {
          return next >>> 1;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    import java.util.Spliterator;
    import java.util.Spliterator.OfPrimitive;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester for {@code Spliterator} implementations.
     *
     * @since NEXT (but since 21.0 in the JRE flavor)
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("Java7ApiChecker")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    import java.util.concurrent.locks.AbstractOwnableSynchronizer;
    import java.util.concurrent.locks.LockSupport;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    @GwtCompatible(emulated = true)
    @ReflectionSupport(value = ReflectionSupport.Level.FULL)
    @ElementTypesAreNonnullByDefault
    // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

    import com.google.errorprone.annotations.DoNotMock;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionException;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Future} that accepts completion listeners. Each listener has an associated executor, and
     * it is invoked using this executor once the future's computation is {@linkplain Future#isDone()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top