scrooge-generator/src/main/resources/androidgen/union_inner.mustache [11:32]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public {{name}}() {
    super();
  }

  public {{name}}(_Fields setField, Object value) {
    super(setField, value);
  }

  public {{name}}({{{struct_type_name}}} other) {
    super(other);
  }

  public static List<String> validateNewInstance({{name}} item) {
    final List<String> buf = new ArrayList<String>();
    final TFieldIdEnum setField = item.getSetField();

    if (setField != null) {
      final short thriftFieldId = setField.getThriftFieldId();
{{#fields}}
{{#field_type.has_struct_at_leaf}}
{{#consolidate_newlines}}
      if ({{key}} == thriftFieldId && (item.isSet(_Fields.{{#constant_name}}{{name}}{{/constant_name}}))) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



scrooge-generator/src/main/resources/apachejavagen/union_inner.mustache [9:30]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public {{name}}() {
    super();
  }

  public {{name}}(_Fields setField, Object value) {
    super(setField, value);
  }

  public {{name}}({{{struct_type_name}}} other) {
    super(other);
  }

  public static List<String> validateNewInstance({{name}} item) {
    final List<String> buf = new ArrayList<String>();
    final TFieldIdEnum setField = item.getSetField();

    if (setField != null) {
      final short thriftFieldId = setField.getThriftFieldId();
{{#fields}}
{{#field_type.has_struct_at_leaf}}
{{#consolidate_newlines}}
      if ({{key}} == thriftFieldId && (item.isSet(_Fields.{{#constant_name}}{{name}}{{/constant_name}}))) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



