Class RuntimeCollectionField<T,​V>


  • abstract class RuntimeCollectionField<T,​V>
    extends Field<T>
    A runtime field for a Collection. Null values are not written.
    • Field Detail

      • schema

        protected final CollectionSchema<V> schema
        Since we cannot inherit multiple classes, we create this Collection schema simply to delegate to the wrapping class' abstract methods.
    • Method Detail

      • addValueFrom

        protected abstract void addValueFrom​(Input input,
                                             java.util.Collection<V> collection)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeValueTo

        protected abstract void writeValueTo​(Output output,
                                             int fieldNumber,
                                             V value,
                                             boolean repeated)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • transferValue

        protected abstract void transferValue​(Pipe pipe,
                                              Input input,
                                              Output output,
                                              int number,
                                              boolean repeated)
                                       throws java.io.IOException
        Throws:
        java.io.IOException