Project

General

Profile

Download (1.04 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.container;
10

    
11
import java.util.UUID;
12

    
13
/**
14
 * @author cmathew
15
 * @date 7 Apr 2015
16
 *
17
 */
18
public class IdUuidName {
19

    
20
    private final Object id;
21
    private final UUID uuid;
22
    private final String name;
23

    
24
    public IdUuidName(Object id, UUID uuid, String name) {
25

    
26
        if(id == null || uuid == null) {
27
            throw new IllegalArgumentException("Neither Id nor Uuid can be null");
28
        }
29
        this.id = id;
30
        this.uuid = uuid;
31
        this.name = name;
32
    }
33

    
34
    /**
35
     * @return the id
36
     */
37
    public Object getId() {
38
        return id;
39
    }
40

    
41
    /**
42
     * @return the uuid
43
     */
44
    public UUID getUuid() {
45
        return uuid;
46
    }
47

    
48
    /**
49
     * @return the name
50
     */
51
    public String getName() {
52
        return name;
53
    }
54

    
55
}
(3-3/7)