public static CachePoolEntryProto convert(CachePoolEntry entry) { CachePoolEntryProto.Builder builder = CachePoolEntryProto.newBuilder(); builder.setInfo(PBHelper.convert(entry.getInfo())); builder.setStats(PBHelper.convert(entry.getStats())); return builder.build(); }
public static CachePoolEntry convert (CachePoolEntryProto proto) { CachePoolInfo info = PBHelper.convert(proto.getInfo()); CachePoolStats stats = PBHelper.convert(proto.getStats()); return new CachePoolEntry(info, stats); }
@Override public CachePoolEntry get(int i) { CachePoolEntryProto elem = proto.getEntries(i); return PBHelper.convert(elem); }
public static CachePoolEntry convert(CachePoolEntryProto proto) { CachePoolInfo info = convert(proto.getInfo()); CachePoolStats stats = convert(proto.getStats()); return new CachePoolEntry(info, stats); }
public static CachePoolEntryProto convert(CachePoolEntry entry) { CachePoolEntryProto.Builder builder = CachePoolEntryProto.newBuilder(); builder.setInfo(convert(entry.getInfo())); builder.setStats(convert(entry.getStats())); return builder.build(); }
@Override public CachePoolEntry get(int i) { CachePoolEntryProto elem = proto.getEntries(i); return PBHelperClient.convert(elem); }