Examples of NSMutableRange


Examples of ns.foundation.NSMutableRange

    NSMutableRange otherRange = new NSMutableRange(range);
    assertEquals(range, otherRange);
  }

  public void testClone() {
    NSMutableRange range = new NSMutableRange(2,3);
    NSMutableRange clone = (NSMutableRange) range.clone();
    assertEquals(range, clone);
  }
View Full Code Here

Examples of ns.foundation.NSMutableRange

    NSMutableRange clone = (NSMutableRange) range.clone();
    assertEquals(range, clone);
  }

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

Examples of ns.foundation.NSMutableRange

    assertEquals(3, range.location());
    assertEquals(2, range.length());
  }

  public void testSetLength() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(3, range.length());
    range.setLength(1);
    assertEquals(1, range.length());
  }
View Full Code Here

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

Examples of ns.foundation.NSMutableRange

    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
Copyright © 2018 www.massapi.com. 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.