Class ProxyCategory

  • All Implemented Interfaces:
    Category

    public class ProxyCategory
    extends Object
    implements Category
    Provides lazy initialization of Category classes that, in "generic" mode, can completely bypass that initialization.
    Author:
    hansonr
    • Constructor Detail

      • ProxyCategory

        public ProxyCategory​(String name,
                             int rowCount,
                             Object[] encodedColumns)
    • Method Detail

      • get

        public Category get()
        Description copied from interface: Category
        A hook to explicitly request this category (it may be wrapped as ProxyCategory).
        Specified by:
        get in interface Category
        Returns:
        the resolved category which the correct type
      • getRowCount

        public int getRowCount()
        Description copied from interface: Category
        The number of rows in this Category. 0 for undefined categories.
        Specified by:
        getRowCount in interface Category
        Returns:
        the number of rows
      • isDefined

        public boolean isDefined()
        Description copied from interface: Category
        States whether this Category is defined.
        Specified by:
        isDefined in interface Category
        Returns:
        true if this Category contains data