本文整理了Java中php.runtime.Memory.concat()
方法的一些代码示例,展示了Memory.concat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Memory.concat()
方法的具体详情如下:
包路径:php.runtime.Memory
类名称:Memory
方法名:concat
暂无
代码示例来源:origin: jphp-group/jphp
public String concatRight(Memory value) { return value.concat(this); }
public String concatRight(long value) { return value + toString(); }
代码示例来源:origin: jphp-group/jphp
@Test
public void testConcat(){
Assert.assertEquals("1foobar", Memory.TRUE.concat("foobar"));
Assert.assertEquals("1foobar", Memory.TRUE.concat(new StringMemory("foobar")));
Assert.assertEquals("19", Memory.TRUE.concat(9));
Assert.assertEquals("19", Memory.TRUE.concat(new LongMemory(9)));
Assert.assertEquals("11", Memory.TRUE.concat(true));
Assert.assertEquals("11", Memory.TRUE.concat(Memory.TRUE));
Assert.assertEquals("1", Memory.TRUE.concat(false));
Assert.assertEquals("1", Memory.TRUE.concat(Memory.FALSE));
Assert.assertEquals("11", Memory.TRUE.concat(1.0));
Assert.assertEquals("foobar1", Memory.TRUE.concatRight("foobar"));
Assert.assertEquals("11", Memory.TRUE.concatRight(true));
Assert.assertEquals("1", Memory.TRUE.concatRight(false));
Assert.assertEquals("331", Memory.TRUE.concatRight(33));
Assert.assertEquals("22.01", Memory.TRUE.concatRight(22.0));
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory invoke(Memory o1, Memory o2) {
return new StringMemory(o1.concat(o2));
}
}, callCache, cacheIndex);
代码示例来源:origin: jphp-group/jphp
@Override
public Memory calc(Environment env, TraceInfo trace, Memory o1, Memory o2) {
return StringMemory.valueOf(o1.concat(o2));
}
}
代码示例来源:origin: jphp-group/jphp
@Override
public String concat(double value) {
return this.getValue().concat(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public String concat(boolean value) {
return this.getValue().concat(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public String concat(Memory memory) {
return getValue().concat(memory);
}
代码示例来源:origin: jphp-group/jphp
@Override
public String concat(String value) {
return this.getValue().concat(value);
}
代码示例来源:origin: jphp-group/jphp
@Override
public String concat(long value) {
return this.getValue().concat(value);
}
代码示例来源:origin: jphp-group/jphp
public Memory assignConcat(Memory memory) { return assign(concat(memory)); }
public Memory assignConcat(long memory) { return assign(concat(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignConcat(double memory) { return assign(concat(memory)); }
public Memory assignConcat(boolean memory) { return assign(concat(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignConcat(boolean memory) { return assign(concat(memory)); }
public Memory assignConcat(String memory) { return assign(concat(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignConcat(long memory) { return assign(concat(memory)); }
public Memory assignConcat(double memory) { return assign(concat(memory)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignConcat(String memory) { return assign(concat(memory)); }
public Memory assignConcatRight(Memory memory) { return memory.assign(memory.concat(this)); }
代码示例来源:origin: jphp-group/jphp
public Memory assignConcatRight(Memory memory) { return memory.assign(memory.concat(this)); }
代码示例来源:origin: jphp-group/jphp
@Override
public Memory assignConcat(boolean memory) {
return assign(toValue().concat(memory));
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory assignConcat(String memory) {
return assign(toValue().concat(memory));
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory assignConcat(long memory) {
return assign(toValue().concat(memory));
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory assignConcat(Memory memory) {
return assign(toValue().concat(memory));
}
代码示例来源:origin: jphp-group/jphp
@Override
public Memory assignConcat(double memory) {
return assign(toValue().concat(memory));
}
内容来源于网络,如有侵权,请联系作者删除!