|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wotonomy.foundation.NSRange net.wotonomy.foundation.NSMutableRange
public class NSMutableRange
A pure java implementation of NSMutableRange. An NSMutableRange is a modifiable NSRange.
Field Summary |
---|
Fields inherited from class net.wotonomy.foundation.NSRange |
---|
len, loc, ZeroRange |
Constructor Summary | |
---|---|
NSMutableRange()
Default constructor produces an empty range. |
|
NSMutableRange(int location,
int length)
Produces a range with the specified location and length. |
|
NSMutableRange(NSRange aRange)
Produces a range that has the same location and length as the specified range. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a copy of this range. |
void |
intersectRange(NSRange aRange)
Modifies this range to be the intersection of this range and the specified range. |
void |
setLength(int length)
Sets the length of this range. |
void |
setLocation(int location)
Sets the location of this range. |
void |
unionRange(NSRange aRange)
Modifies this range to be the union of this range and the specified range. |
Methods inherited from class net.wotonomy.foundation.NSRange |
---|
equals, fromString, hashCode, intersectsRange, isEmpty, isEqualToRange, isSubrangeOfRange, length, location, locationInRange, maxRange, rangeByIntersectingRange, rangeByUnioningRange, subtractRange, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NSMutableRange()
public NSMutableRange(NSRange aRange)
public NSMutableRange(int location, int length)
Method Detail |
---|
public void setLocation(int location)
public void setLength(int length)
public void unionRange(NSRange aRange)
public void intersectRange(NSRange aRange)
public java.lang.Object clone()
clone
in class NSRange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |