Project

General

Profile

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

    
12
import java.util.UUID;
13

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

    
21
    private final Object id;
22
    private final UUID uuid;
23

    
24
    public IdAndUuid(Object id, UUID uuid) {
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
    }
32

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

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

    
47
}
(3-3/4)