MCPcopy Create free account
hub / github.com/beanshell/beanshell / longUnaryOperation

Method longUnaryOperation

src/bsh/Primitive.java:726–745  ·  view source on GitHub ↗
(Long L, int kind)

Source from the content-addressed store, hash-verified

724 }
725
726 static long longUnaryOperation(Long L, int kind)
727 {
728 long operand = L.longValue();
729
730 switch(kind)
731 {
732 case PLUS:
733 return operand;
734 case MINUS:
735 return -operand;
736 case TILDE:
737 return ~operand;
738 case INCR:
739 return operand + 1;
740 case DECR:
741 return operand - 1;
742 default:
743 throw new InterpreterError("bad long unaryOperation");
744 }
745 }
746
747 static float floatUnaryOperation(Float F, int kind)
748 {

Callers 2

unaryOperationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected