本文整理汇总了Java中com.intellij.util.io.EnumeratorStringDescriptor.INSTANCE属性的典型用法代码示例。如果您正苦于以下问题:Java EnumeratorStringDescriptor.INSTANCE属性的具体用法?Java EnumeratorStringDescriptor.INSTANCE怎么用?Java EnumeratorStringDescriptor.INSTANCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.util.io.EnumeratorStringDescriptor
的用法示例。
在下文中一共展示了EnumeratorStringDescriptor.INSTANCE属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getComputable
@Nonnull
private static ThrowableComputable<PersistentHashMap<String, Record>, IOException> getComputable(final File file) {
return () -> new PersistentHashMap<>(file, EnumeratorStringDescriptor.INSTANCE, new DataExternalizer<Record>() {
@Override
public void save(@Nonnull DataOutput out, Record value) throws IOException {
out.writeInt(value.magnitude);
out.writeLong(value.date.getTime());
out.writeLong(value.configurationHash);
}
@Override
public Record read(@Nonnull DataInput in) throws IOException {
return new Record(in.readInt(), new Date(in.readLong()), in.readLong());
}
}, 4096, CURRENT_VERSION);
}
示例2: getKeyDescriptor
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
return EnumeratorStringDescriptor.INSTANCE;
}
示例3: getValueExternalizer
@NotNull
public DataExternalizer<String> getValueExternalizer() {
return EnumeratorStringDescriptor.INSTANCE;
}
示例4: getKeyDescriptor
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
return EnumeratorStringDescriptor.INSTANCE;
}
示例5: getValueExternalizer
@NotNull
@Override
public DataExternalizer<String> getValueExternalizer() {
return EnumeratorStringDescriptor.INSTANCE;
}
示例6: getKeyDescriptor
@Override
@NotNull
public KeyDescriptor<String> getKeyDescriptor()
{
return EnumeratorStringDescriptor.INSTANCE;
}
示例7: getKeyDescriptor
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor()
{
return EnumeratorStringDescriptor.INSTANCE;
}