Package com.io7m.cardant.protocol.inventory.cb.internal

# Class CAUVPage

java.lang.Object
com.io7m.cardant.protocol.inventory.cb.internal.CAUVPage

public final class CAUVPage extends Object
A validator.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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.
  `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.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 values
      `B` - The type of result values
    Parameters:
      `page` - The input
      `f` - 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 values
      `B` - The type of page wire values
    Parameters:
      `data` - The input
      `f` - The value transformer
    Returns:
      A page