예제 #1
0
        internal static CharSequenceAdapter copy(CharSequenceAdapter other)
        {
            CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence);

            buf.limitJ    = other.limitJ;
            buf.positionJ = other.positionJ;
            buf.markJ     = other.markJ;
            return(buf);
        }
예제 #2
0
        public override java.lang.CharSequence subSequence(int start, int end)
        {
            if (end < start || start < 0 || end > remaining())
            {
                throw new java.lang.IndexOutOfBoundsException();
            }

            CharSequenceAdapter result = copy(this);

            result.positionJ = positionJ + start;
            result.limitJ    = positionJ + end;
            return(result);
        }
예제 #3
0
 internal static CharSequenceAdapter copy(CharSequenceAdapter other)
 {
     CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence);
     buf.limitJ = other.limitJ;
     buf.positionJ = other.positionJ;
     buf.markJ = other.markJ;
     return buf;
 }