Package ns.foundation

Examples of ns.foundation.NSMutableRange


    range.setLength(1);
    assertEquals(1, range.length());
  }

  public void testSetLocation() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(2, range.location());
    range.setLocation(1);
    assertEquals(1, range.location());
  }
View Full Code Here


    range.setLocation(1);
    assertEquals(1, range.location());
  }

  public void testUnionRange() {
    NSMutableRange range = new NSMutableRange(2,3);
    NSRange otherRange = new NSRange(3, 3);
    range.unionRange(otherRange);
    assertEquals(2, range.location());
    assertEquals(4, range.length());
  }
View Full Code Here

TOP

Related Classes of ns.foundation.NSMutableRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.