Project

General

Profile

Revision 2d35c9d9

ID2d35c9d91ecd966db599e7d9eae3ce431a0d1e10
Parent 8be5973f
Child 81de71a6

Added by Andreas Müller 5 months ago

ref #9702 add factory method for Collection

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/occurrence/Collection.java
114 114

  
115 115
// ************** FACTORY METHODS *************************/
116 116

  
117
	/**
118
	 * Factory method
119
	 */
120 117
	public static Collection NewInstance(){
121 118
		return new Collection();
122 119
	}
123 120

  
121
    public static Collection NewInstance(String code, String name){
122
        Collection result = new Collection();
123
        result.setCode(code);
124
        result.setName(name);
125
        return result;
126
    }
127

  
124 128
// ******************** CONSTRUCTOR *************************/
125 129

  
126 130
	protected Collection() {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)