Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ArrayBasedEscaperMap (0.2 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

    @ElementTypesAreNonnullByDefault
    public final class ArrayBasedEscaperMap {
      /**
       * Returns a new ArrayBasedEscaperMap for creating ArrayBasedCharEscaper or
       * ArrayBasedUnicodeEscaper instances.
       *
       * @param replacements a map of characters to their escaped representations
       */
      public static ArrayBasedEscaperMap create(Map<Character, String> replacements) {
        return new ArrayBasedEscaperMap(createReplacementArray(replacements));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

    @GwtCompatible
    public class ArrayBasedEscaperMapTest extends TestCase {
      public void testNullMap() {
        assertThrows(NullPointerException.class, () -> ArrayBasedEscaperMap.create(null));
      }
    
      public void testEmptyMap() {
        Map<Character, String> map = ImmutableMap.of();
        ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map);
        // Non-null array of zero length.
        assertEquals(0, fem.getReplacementArray().length);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

     * using {@link ArrayBasedEscaperMap}.
     *
     * @author Sven Mawson
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ArrayBasedCharEscaper extends CharEscaper {
      // The replacement array (see ArrayBasedEscaperMap).
      private final char[][] replacements;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

     * using {@link ArrayBasedEscaperMap}.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ArrayBasedUnicodeEscaper extends UnicodeEscaper {
      // The replacement array (see ArrayBasedEscaperMap).
      private final char[][] replacements;
      // The number of elements in the replacement array.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top