Class ListFieldSchemaFull

  • All Implemented Interfaces:
    ListFieldSchema

    @CheckReturnValue
    final class ListFieldSchemaFull
    extends java.lang.Object
    implements ListFieldSchema
    Utility class that aids in properly manipulating list fields for either the lite or full runtime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Class<?> UNMODIFIABLE_LIST_CLASS  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <E> java.util.List<E> getList​(java.lang.Object message, long offset)  
      void makeImmutableListAt​(java.lang.Object message, long offset)  
      <E> void mergeListsAt​(java.lang.Object msg, java.lang.Object otherMsg, long offset)  
      <L> java.util.List<L> mutableListAt​(java.lang.Object message, long offset)  
      private static <L> java.util.List<L> mutableListAt​(java.lang.Object message, long offset, int additionalCapacity)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UNMODIFIABLE_LIST_CLASS

        private static final java.lang.Class<?> UNMODIFIABLE_LIST_CLASS
    • Constructor Detail

      • ListFieldSchemaFull

        ListFieldSchemaFull()
    • Method Detail

      • mutableListAt

        public <L> java.util.List<L> mutableListAt​(java.lang.Object message,
                                                   long offset)
        Specified by:
        mutableListAt in interface ListFieldSchema
      • mutableListAt

        private static <L> java.util.List<L> mutableListAt​(java.lang.Object message,
                                                           long offset,
                                                           int additionalCapacity)
      • mergeListsAt

        public <E> void mergeListsAt​(java.lang.Object msg,
                                     java.lang.Object otherMsg,
                                     long offset)
        Specified by:
        mergeListsAt in interface ListFieldSchema
      • getList

        static <E> java.util.List<E> getList​(java.lang.Object message,
                                             long offset)