MCPcopy Create free account
hub / github.com/davidgiven/luje / subSequence

Method subSequence

lib/java/nio/CharArrayBuffer.java:92–102  ·  view source on GitHub ↗
(int start, int end)

Source from the content-addressed store, hash-verified

90 }
91
92 @Override
93 public final CharSequence subSequence(int start, int end) {
94 if (start < 0 || end < start || end > remaining()) {
95 throw new IndexOutOfBoundsException();
96 }
97
98 CharBuffer result = duplicate();
99 result.limit(position + end);
100 result.position(position + start);
101 return result;
102 }
103
104 @Override
105 public final String toString() {

Callers

nothing calls this directly

Calls 4

remainingMethod · 0.80
limitMethod · 0.80
positionMethod · 0.80
duplicateMethod · 0.45

Tested by

no test coverage detected