Lines Matching defs:RopeUtilities
2 * RopeUtilities.java
34 class RopeUtilities {
40 public static RopeUtilities INSTANCE = new RopeUtilities();
50 if (r instanceof AbstractRope && ((AbstractRope) r).depth() > RopeUtilities.MAX_ROPE_DEPTH) {
116 if (depth >= RopeUtilities.FIBONACCI.length - 2)
118 return (RopeUtilities.FIBONACCI[depth + 2] <= r.length());
127 final Rope[] ropes = new Rope[RopeUtilities.FIBONACCI.length];
142 for (pos=2; pos<RopeUtilities.FIBONACCI.length-1; ++pos) {
145 if (RopeUtilities.FIBONACCI[pos] <= l && l < RopeUtilities.FIBONACCI[pos+1]) // l is in [F(pos), F(pos+1))
162 for (int j=pos; j<RopeUtilities.FIBONACCI.length-1; ++j) {
167 if (RopeUtilities.FIBONACCI[j] <= rebalanced.length() && rebalanced.length() < RopeUtilities.FIBONACCI[j+1]) {
178 for (int j=2; j<RopeUtilities.FIBONACCI.length; ++j) {
197 out.print(RopeUtilities.SPACES.substring(0,depth*2));
201 out.print(RopeUtilities.SPACES.substring(0,depth*2));
206 out.print(RopeUtilities.SPACES.substring(0,depth*2));
209 out.print(RopeUtilities.SPACES.substring(0,depth*2));