Statistics
| Revision:

gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer / org.gvsig.raster.lib.buffer.impl / src / main / java / org / gvsig / raster / lib / buffer / impl / DefaultBandInfo.java @ 6302

History | View | Annotate | Download (2.16 KB)

1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23

    
24
package org.gvsig.raster.lib.buffer.impl;
25

    
26
import java.util.Collections;
27
import java.util.List;
28
import java.util.Map;
29
import java.util.Map.Entry;
30

    
31
import org.gvsig.raster.lib.buffer.api.BandInfo;
32

    
33
/**
34
 * Default implementation of {@link BandInfo}
35
 * 
36
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
37
 */
38
public class DefaultBandInfo implements BandInfo {
39
    
40
    private int band;
41
    private String name;
42
    private String description;
43
    private List<Map.Entry<Object, Object>> values;
44
    
45
    /**
46
     * 
47
     * @param band 
48
     * @param name
49
     * @param description
50
     * @param values
51
     */
52
    public DefaultBandInfo(int band, String name, String description,
53
        List<Entry<Object, Object>> values) {
54
        super();
55
        this.band = band;
56
        this.name = name;
57
        this.description = description;
58
        this.values = values;
59
    }
60

    
61
    @Override
62
    public String getName() {
63
        return this.name;
64
    }
65

    
66
    @Override
67
    public String getDescription() {
68
        return this.description;
69
    }
70

    
71
    @Override
72
    public List<Entry<Object, Object>> getValues() {
73
        return Collections.unmodifiableList(this.values);
74
    }
75

    
76
    @Override
77
    public int getBand() {
78
        return this.band;
79
    }
80
}