📄 ddbasevalueimpl.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: DDBaseValueImpl.java
package org.gudy.azureus2.pluginsimpl.local.ddb;
import org.gudy.azureus2.plugins.ddb.*;
// Referenced classes of package org.gudy.azureus2.pluginsimpl.local.ddb:
// DDBaseHelpers, DDBaseContactImpl
public class DDBaseValueImpl
implements DistributedDatabaseValue
{
private DDBaseContactImpl contact;
private Object value;
private byte value_bytes[];
private long creation_time;
private long version;
protected static int MAX_VALUE_SIZE = 509;
protected DDBaseValueImpl(DDBaseContactImpl _contact, Object _value, long _creation_time, long _version)
throws DistributedDatabaseException
{
contact = _contact;
value = _value;
creation_time = _creation_time;
version = _version;
value_bytes = DDBaseHelpers.encode(value);
}
protected DDBaseValueImpl(DDBaseContactImpl _contact, byte _value_bytes[], long _creation_time, long _version)
{
contact = _contact;
value_bytes = _value_bytes;
creation_time = _creation_time;
version = _version;
}
public Object getValue(Class c)
throws DistributedDatabaseException
{
if (value == null)
value = DDBaseHelpers.decode(c, value_bytes);
return value;
}
protected byte[] getBytes()
{
return value_bytes;
}
public long getCreationTime()
{
return creation_time;
}
public long getVersion()
{
return version;
}
public DistributedDatabaseContact getContact()
{
return contact;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -