aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/client/model/EnumKeyProvider.java
blob: c41d420e2d7e52bd0e0faf5f35e003a84ea0c8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.traccar.web.client.model;

import com.sencha.gxt.data.shared.ModelKeyProvider;


public class EnumKeyProvider<T extends Enum<T>> implements ModelKeyProvider<T> {

    @Override
    public String getKey(T item) {
        return String.valueOf(item.ordinal());
    }

}