Project

General

Profile

Revision 1b996cca

ID1b996ccac9ad65622f05f54385cdf0b2905afbe0
Parent 3ca67b85
Child ac6f2b2b

Added by Andreas Müller about 2 years ago

ref #7902, ref #7901 add generic to allow return types for defaultValue and to allow toString and fromString methods

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/IPreferencePredicate.java
17 17
 * @since 12.11.2018
18 18
 *
19 19
 */
20
public interface IPreferencePredicate {
20
public interface IPreferencePredicate<T extends Object> {
21 21

  
22 22
    public String getKey();
23 23

  
24
    public Object getDefaultValue();
24
    public T getDefaultValue();
25 25

  
26 26
    public String getMessage();
27 27

  
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/PreferencePredicate.java
20 20
 * @since 2013-09-09
21 21
 *
22 22
 */
23
public enum PreferencePredicate implements IEnumTerm<PreferencePredicate>, IPreferencePredicate{
23
public enum PreferencePredicate implements IEnumTerm<PreferencePredicate>, IPreferencePredicate<Object>{
24 24
    Test(UUID.fromString("b71214ab-2524-4b5d-8e2b-0581767ac839"), "Test", "Test", "Test"),
25 25

  
26 26
    //names

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)