Class CAUVPage
java.lang.Object
com.io7m.cardant.protocol.inventory.cb.internal.CAUVPage
A validator.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends com.io7m.cedarbridge.runtime.api.CBSerializableType,B>
CAPage<B> pageFromWire(CAI1Page<A> page, Function<A, B> f) Convert a page from wire format.static <A,B extends com.io7m.cedarbridge.runtime.api.CBSerializableType>
CAI1Page<B> pageToWire(CAPage<A> data, Function<A, B> f) Convert a page to wire format.
-
Method Details
-
pageFromWire
public static <A extends com.io7m.cedarbridge.runtime.api.CBSerializableType,B> CAPage<B> pageFromWire(CAI1Page<A> page, Function<A, B> f) Convert a page from wire format.- Type Parameters:
A- The type of page wire valuesB- The type of result values- Parameters:
page- The inputf- The value transformer- Returns:
- A page
-
pageToWire
public static <A,B extends com.io7m.cedarbridge.runtime.api.CBSerializableType> CAI1Page<B> pageToWire(CAPage<A> data, Function<A, B> f) Convert a page to wire format.- Type Parameters:
A- The type of result valuesB- The type of page wire values- Parameters:
data- The inputf- The value transformer- Returns:
- A page
-