Project

General

Profile

« Previous | Next » 

Revision bf95f6e9

Added by Andreas Müller about 4 years ago

ref #7849 make byKey() static

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/TermDisplayEnum.java
35 35
        return key;
36 36
    }
37 37

  
38
    public TermDisplayEnum byKey(String key){
39
        if (key == null){
40
            return null;
41
        }
38
    public static TermDisplayEnum byKey(String key){
42 39
        for (TermDisplayEnum termDisplay : values()){
43 40
            if (termDisplay.key.equals(key)){
44 41
                return termDisplay;

Also available in: Unified diff