Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package com.presidentio.testdatagenerator.model;
 
 
 import java.util.List;
 
 public class Template {
 
     private String id;
 
     private String extend;
 
     @JsonIgnore
     private Template extendTemplate;
 
     private Integer count;
 
     private String name;
 
     private List<Fieldfields;
 
     private List<Stringchilds = new ArrayList<>();
 
     public String getId() {
         return ;
     }
 
     public void setId(String id) {
         this. = id;
     }
 
     public String getExtend() {
         return ;
     }
 
     public void setExtend(String extend) {
         this. = extend;
     }
 
     public Template getExtendTemplate() {
         return ;
     }
 
     public void setExtendTemplate(Template extendTemplate) {
         this. = extendTemplate;
     }
 
     public Integer getCount() {
         if ( == null &&  != null) {
             return .getCount();
         }
         return ;
     }
 
     public void setCount(Integer count) {
         this. = count;
     }
 
     public String getName() {
         if ( == null &&  != null) {
             return .getName();
         }
         return ;
     }
 
     public void setName(String name) {
         this. = name;
     }
 
     public List<FieldgetFields() {
         List<Fieldresult = new ArrayList<>();
         if ( != null && .getFields() != null) {
             result.addAll(.getFields());
         }
         if ( != null) {
             result.addAll();
         }
         return result;
     }
 
     public void setFields(List<Fieldfields) {
         this. = fields;
     }
 
     public List<StringgetChilds() {
        List<Stringresult = new ArrayList<>();
        if ( != null && .getChilds() != null) {
            result.addAll(.getChilds());
        }
        if ( != null) {
            result.addAll();
        }
        return result;
    }
    public void setChilds(List<Stringchilds) {
        this. = childs;
    }
    @Override
    public boolean equals(Object o) {
        if (this == oreturn true;
        if (o == null || getClass() != o.getClass()) return false;
        Template template = (Templateo;
        if ( != null ? !.equals(template.name) : template.name != nullreturn false;
        return true;
    }
    @Override
    public int hashCode() {
        return  != null ? .hashCode() : 0;
    }
New to GrepCode? Check out our FAQ X