本文整理了Java中sun.misc.Unsafe.getBooleanVolatile()
方法的一些代码示例,展示了Unsafe.getBooleanVolatile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.getBooleanVolatile()
方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:getBooleanVolatile
[英]Volatile version of #getBoolean(Object,long)
[中]#getBoolean(对象,长)的易失性版本
代码示例来源:origin: neo4j/neo4j
public static boolean getBooleanVolatile( Object obj, long offset )
{
return unsafe.getBooleanVolatile( obj, offset );
}
代码示例来源:origin: fengjiachun/Jupiter
public boolean getBooleanVolatile(Object target, long offset) {
return unsafe.getBooleanVolatile(target, offset);
}
代码示例来源:origin: fengjiachun/Jupiter
public boolean getBooleanVolatile(Object target, long offset) {
return unsafe.getBooleanVolatile(target, offset);
}
代码示例来源:origin: aaberg/sql2o
public Object getProperty(Object obj) {
return theUnsafe.getBooleanVolatile(obj, offset);
}
代码示例来源:origin: boonproject/boon
@Override
public boolean getBoolean( Object obj ) {
return unsafe.getBooleanVolatile( obj, offset );
}
}
代码示例来源:origin: boonproject/boon
@Override
public boolean getBoolean( Object obj ) {
return unsafe.getBooleanVolatile( obj, offset );
}
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public boolean getBooleanVolatile(long address) {
return UNSAFE.getBooleanVolatile(null, address);
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public boolean getBooleanVolatile(long address) {
return UNSAFE.getBooleanVolatile(null, address);
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public boolean getBooleanVolatile(Object base, long offset) {
return UNSAFE.getBooleanVolatile(base, offset);
}
代码示例来源:origin: peptos/traffic-shm
public static boolean getBooleanVolatile(Object object, long offset) {
return unsafe.getBooleanVolatile(object, offset);
}
代码示例来源:origin: io.fastjson/boon
@Override
public boolean getBoolean( Object obj ) {
return unsafe.getBooleanVolatile( obj, offset );
}
}
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public boolean getBooleanVolatile(Object base, long offset) {
return UNSAFE.getBooleanVolatile(base, offset);
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
@Override
public boolean getBoolean( Object obj ) {
return unsafe.getBooleanVolatile( obj, offset );
}
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
@Override
public boolean getBoolean( Object obj ) {
return unsafe.getBooleanVolatile( obj, offset );
}
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public boolean getBooleanVolatile(Object base, long offset) {
return UNSAFE.getBooleanVolatile(base, offset);
}
代码示例来源:origin: com.tomitribe.tribestream/tribestream-metrics-bytecode
public static boolean getBooleanVolatile(final Object o, final long offset) {
return UNSAFE.getBooleanVolatile(o, offset);
}
代码示例来源:origin: serkan-ozal/mysafe
@Override
public boolean getBooleanVolatile(Unsafe unsafe, Object o, long offset) {
return unsafe.getBooleanVolatile(o, offset);
}
代码示例来源:origin: biezhi/anima
public Object getProperty(Object obj) {
return theUnsafe.getBooleanVolatile(obj, offset);
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public boolean getBooleanVolatile(long address) {
return UNSAFE.getBooleanVolatile(null, address);
}
代码示例来源:origin: mercyblitz/confucius-commons
/**
* 获取指定对象字段的boolean值
*
* @param object
* 对象
* @param fieldName
* 字段名称
* @return boolean值
*/
public static boolean getBooleanVolatile(Object object, String fieldName) {
long offset = getObjectFieldOffset(object, fieldName);
return unsafe.getBooleanVolatile(object, offset);
}
内容来源于网络,如有侵权,请联系作者删除!