本文整理了Java中php.runtime.Memory.minus()
方法的一些代码示例,展示了Memory.minus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Memory.minus()
方法的具体详情如下:
包路径:php.runtime.Memory
类名称:Memory
方法名:minus
暂无
代码示例来源:origin: jphp-group/jphp
@Override
public Memory calc(Environment env, TraceInfo trace, Memory o1, Memory o2) {
return o1.minus(o2);
}
}
代码示例来源:origin: jphp-group/jphp
public static Memory minus(boolean o1, Memory value) {
return o1 ? Memory.TRUE.minus(value) : Memory.FALSE.minus(value);
}
代码示例来源:origin: jphp-group/jphp
public Memory minusRight(Memory value){ return value.minus(this); }
public Memory minusRight(long value){ return LongMemory.valueOf(value).minus(this); }
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(boolean value) {
return this.getValue().minus(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(long value) {
return this.getValue().minus(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(long value) {
return toNumeric().minus(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(Memory memory) {
return toNumeric().minus(memory);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(Memory memory) {
return getValue().minus(memory);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(Memory memory) {
return toNumeric().minus(memory);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(double value) {
return this.getValue().minus(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(String value) {
return this.getValue().minus(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(Memory memory) {
return toNumeric().minus(memory);
}
代码示例来源:origin: jphp-group/jphp
public Memory assignMinus(boolean memory) { return assign(minus(memory)); }
public Memory assignMinus(String memory) { return assign(minus(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory minusRight(long value){ return LongMemory.valueOf(value).minus(this); }
public Memory minusRight(double value){ return new DoubleMemory(value).minus(this); }
代码示例来源:origin: jphp-group/jphp
public Memory assignMinus(double memory) { return assign(minus(memory)); }
public Memory assignMinus(boolean memory) { return assign(minus(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignMinus(long memory) { return assign(minus(memory)); }
public Memory assignMinus(double memory) { return assign(minus(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignMinus(String memory) { return assign(minus(memory)); }
public Memory assignMinusRight(Memory memory) { return memory.assign(memory.minus(this)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignMinus(Memory memory) { return assign(minus(memory)); }
public Memory assignMinus(long memory) { return assign(minus(memory)); }
代码示例来源:origin: jphp-group/jphp
@Override
public Memory invoke(Memory o1, Memory o2) {
if (oldValue != null)
oldValue.assign(o1.toValue());
return o1.minus(o2);
}
}, null, 0);
代码示例来源:origin: jphp-group/jphp
@Override
public Memory minus(Memory memory) {
switch (memory.type){
case INT: return LongMemory.valueOf(1 - ((LongMemory)memory).value);
case DOUBLE: return new DoubleMemory(1 - ((DoubleMemory)memory).value);
case REFERENCE: return minus(memory.toValue());
case BOOL: return LongMemory.valueOf(1 - memory.toLong());
default: return CONST_INT_1.minus(memory.toNumeric());
}
}
内容来源于网络,如有侵权,请联系作者删除!