Examples of shiftRight()


Examples of lombok.val.shiftRight()

  @Validate
  public static byte[] getBytes(@NotNull final UnsignedInteger value)
  {
    val bi = value.bigIntegerValue();

    byte[] ba = new byte[] {(byte) (0xff & ((bi.shiftRight(24).intValue()))), (byte) (0xff & ((bi.shiftRight(16).intValue()))),
      (byte) (0xff & ((bi.shiftRight(8).intValue()))), (byte) (0xff & bi.intValue())};

    return LITTLE_ENDIAN ? reverse(ba) : ba;
  }
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.shiftRight()

    // shift the partial diffs to the absolute document positions
    for (Iterator it= diffs.iterator(); it.hasNext();) {
      RangeDifference d= (RangeDifference) it.next();
      d.shiftLeft(leftStartLine);
      d.shiftRight(rightStartLine);
    }

    // undo optimization shifting
    if (shiftBefore > 0) {
      RangeDifference first= (RangeDifference) diffs.get(0);
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.shiftRight()

          else
            break;
        }
//        fChanged.add(current); // not needed since positional shifting is not handled by an annotation model
        current.shiftLeft(leftShift);
        current.shiftRight(rightShift);
      }
     
      fUpdateNeeded= changed;
    }
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.