Package lazyj
Class Format.JSONFragment
java.lang.Object
lazyj.Format.JSONFragment
- All Implemented Interfaces:
- CharSequence
- Enclosing class:
- Format
- Since:
- 2019-10-08
- Author:
- costing
- 
Constructor SummaryConstructorsConstructorDescriptionEmpty constructorJSONFragment(CharSequence toCopy) Copying another char sequence to this object, assuming that the content is a valid JSON fragment.
- 
Method SummaryModifier and TypeMethodDescriptionvoidappend(char c) Append a single charappend(CharSequence seq) charcharAt(int index) inthashCode()intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequencechars, codePoints, isEmpty
- 
Constructor Details- 
JSONFragmentpublic JSONFragment()Empty constructor
- 
JSONFragmentCopying another char sequence to this object, assuming that the content is a valid JSON fragment. No checks are done on the validity of the content.- Parameters:
- toCopy-
 
 
- 
- 
Method Details- 
lengthpublic int length()- Specified by:
- lengthin interface- CharSequence
 
- 
charAtpublic char charAt(int index) - Specified by:
- charAtin interface- CharSequence
 
- 
subSequence- Specified by:
- subSequencein interface- CharSequence
 
- 
toString- Specified by:
- toStringin interface- CharSequence
- Overrides:
- toStringin class- Object
 
- 
hashCodepublic int hashCode()
- 
appendpublic void append(char c) Append a single char- Parameters:
- c-
 
- 
append- Parameters:
- seq-
- Returns:
- the same object, to continue appending to if needed
 
 
-