Class CharSequenceWrapper

java.lang.Object
de.agilecoders.wicket.jquery.util.CharSequenceWrapper
All Implemented Interfaces:
CharSequence

public class CharSequenceWrapper extends Object implements CharSequence
cast given value to a CharSequence and provides same interface.
  • Constructor Details

    • CharSequenceWrapper

      public CharSequenceWrapper(Object raw)
      Construct.
      Parameters:
      raw - the raw value
  • Method Details

    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      public CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toParameterValue

      public static CharSequence toParameterValue(Object value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string
    • toParameterValue

      public static CharSequence toParameterValue(JavaScriptInlineFunction value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string
    • toParameterValue

      public static CharSequence toParameterValue(Long value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string
    • toParameterValue

      public static CharSequence toParameterValue(Integer value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string
    • toParameterValue

      public static CharSequence toParameterValue(Float value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string
    • toParameterValue

      public static CharSequence toParameterValue(Boolean value)
      transform given value to a javascript parameter value
      Parameters:
      value - The value to transform
      Returns:
      value as string