本文整理汇总了Java中com.google.ipc.invalidation.util.LazyString类的典型用法代码示例。如果您正苦于以下问题:Java LazyString类的具体用法?Java LazyString怎么用?Java LazyString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LazyString类属于com.google.ipc.invalidation.util包,在下文中一共展示了LazyString类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toLazyCompactString
import com.google.ipc.invalidation.util.LazyString; //导入依赖的package包/类
/** See spec in implementation notes. */
public static Object toLazyCompactString(final ObjectIdP objectId) {
return LazyString.toLazyCompactString(objectId, new Receiver<TextBuilder>() {
@Override
public void accept(TextBuilder builder) {
toCompactString(builder, objectId);
}
});
}
示例2: toLazyCompactStringForObjectIds
import com.google.ipc.invalidation.util.LazyString; //导入依赖的package包/类
/** See spec in implementation notes. */
public static Object toLazyCompactStringForObjectIds(
final Collection<ObjectIdP> objectIds) {
return LazyString.toLazyCompactString(objectIds, new Receiver<TextBuilder>() {
@Override
public void accept(TextBuilder builder) {
toCompactStringForObjectIds(builder, objectIds);
}
});
}
示例3: toLazyCompactStringForInvalidations
import com.google.ipc.invalidation.util.LazyString; //导入依赖的package包/类
/** See spec in implementation notes. */
public static Object toLazyCompactStringForInvalidations(
final Collection<InvalidationP> invalidations) {
return LazyString.toLazyCompactString(invalidations, new Receiver<TextBuilder>() {
@Override
public void accept(TextBuilder builder) {
toCompactStringForInvalidations(builder, invalidations);
}
});
}
示例4: toLazyCompactStringForRegistrations
import com.google.ipc.invalidation.util.LazyString; //导入依赖的package包/类
/** See spec in implementation notes. */
public static Object toLazyCompactStringForRegistrations(
final Collection<RegistrationP> registrations) {
return LazyString.toLazyCompactString(registrations, new Receiver<TextBuilder>() {
@Override
public void accept(TextBuilder builder) {
toCompactStringForRegistrations(builder, registrations);
}
});
}