Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,832 for strings (0.18 sec)

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

       *
       * @param string a string reference to check
       * @return {@code true} if the string is null or is the empty string
       */
      public static boolean isNullOrEmpty(@CheckForNull String string) {
        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
       * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

        private static final String SECRET_PATTERN = "^(smb.*:).*(@.*)$";
        private static final String SECRET_MASK_REPLACE = "$1******$2";
    
        /**
         * 
         */
        private Strings () {}
    
    
        /**
         * 
         * @param str
         * @param encoding
         * @return encoded
         */
        public static byte[] getBytes ( String str, Charset encoding ) {
            if ( str == null ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/Strings.java

     */
    package jcifs.tests;
    
    
    /**
     * @author mbechler
     *
     */
    public class Strings {
    
        /**
         * from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/quickbrown.txt
         */
        static final String[] UNICODE_STRINGS = new String[] {
            "da - jordbær fløde på", // x
            "de - Zwölf Boxkämpfer", // x
            "el - Γαζέες καὶ μυρτιὲς", // x
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Strings.java

       *
       * @param string a string reference to check
       * @return {@code true} if the string is null or is the empty string
       */
      public static boolean isNullOrEmpty(@CheckForNull String string) {
        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
       * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
      }
    
      @Benchmark
      void addsAndRemoves(int reps) {
        int capacity = this.capacity;
        BlockingQueue<String> queue = this.queue;
        String[] strings = this.strings;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

          }
        }
    
        String stringA = new String(charsA);
        String stringB = new String(charsB);
        assertThat(stringA).isNotEqualTo(stringB);
        assertThat(HASH_FN.hashUnencodedChars(stringA))
            .isNotEqualTo(HASH_FN.hashUnencodedChars(stringB));
        assertThat(fingerprint(stringA.getBytes(UTF_8)))
            .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8)));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 6.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmUtil.java

         * 
         * @return the caclulated mac
         */
        public static byte[] nTOWFv2 ( String domain, String username, byte[] passwordHash ) {
            MessageDigest hmac = Crypto.getHMACT64(passwordHash);
            hmac.update(Strings.getUNIBytes(username.toUpperCase()));
            hmac.update(Strings.getUNIBytes(domain));
            return hmac.digest();
        }
    
    
        /**
         * @param password
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 9.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

          }
        }
    
        String stringA = new String(charsA);
        String stringB = new String(charsB);
        assertThat(stringA).isNotEqualTo(stringB);
        assertThat(HASH_FN.hashUnencodedChars(stringA))
            .isNotEqualTo(HASH_FN.hashUnencodedChars(stringB));
        assertThat(fingerprint(stringA.getBytes(UTF_8)))
            .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8)));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertNull(Strings.emptyToNull(null));
        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
        assertFalse(Strings.isNullOrEmpty("a"));
      }
    
      public void testPadStart_noPadding() {
        assertSame("", Strings.padStart("", 0, '-'));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java

        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Queue<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
        return new String[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
Back to top