/** * Private constructor used to pre-create the types * @param dataType DataType from the common's pb * @param name string representation of the type */ private Type(DataType dataType, String name) { this.dataTypes = ImmutableList.of(dataType); this.name = name; this.size = getTypeSize(dataType); }