OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 61 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61 Rev 182
Line 94... Line 94...
94
    public synchronized final Map<K, V> getImmutable() {
94
    public synchronized final Map<K, V> getImmutable() {
95
        return this.immutable;
95
        return this.immutable;
96
    }
96
    }
97
 
97
 
98
    @Override
98
    @Override
99
    public synchronized int size() {
99
    public int size() {
100
        return this.immutable.size();
100
        return this.getImmutable().size();
101
    }
101
    }
102
 
102
 
103
    @Override
103
    @Override
104
    public synchronized boolean isEmpty() {
104
    public boolean isEmpty() {
105
        return this.immutable.isEmpty();
105
        return this.getImmutable().isEmpty();
106
    }
106
    }
107
 
107
 
108
    @Override
108
    @Override
109
    public synchronized boolean containsKey(final Object key) {
109
    public boolean containsKey(final Object key) {
110
        return this.immutable.containsKey(key);
110
        return this.getImmutable().containsKey(key);
111
    }
111
    }
112
 
112
 
113
    @Override
113
    @Override
114
    public synchronized boolean containsValue(final Object value) {
114
    public boolean containsValue(final Object value) {
115
        return this.immutable.containsValue(value);
115
        return this.getImmutable().containsValue(value);
116
    }
116
    }
117
 
117
 
118
    @Override
118
    @Override
119
    public synchronized V get(final Object key) {
119
    public V get(final Object key) {
120
        return this.immutable.get(key);
120
        return this.getImmutable().get(key);
121
    }
121
    }
122
 
122
 
123
    @Override
123
    @Override
124
    public synchronized Set<Entry<K, V>> entrySet() {
124
    public synchronized Set<Entry<K, V>> entrySet() {
125
        if (this.entrySet == null)
125
        if (this.entrySet == null)
Line 175... Line 175...
175
    }
175
    }
176
 
176
 
177
    // equals
177
    // equals
178
 
178
 
179
    @Override
179
    @Override
180
    public synchronized boolean equals(final Object o) {
180
    public boolean equals(final Object o) {
181
        return this.immutable.equals(o);
181
        return this.getImmutable().equals(o);
182
    }
182
    }
183
 
183
 
184
    @Override
184
    @Override
185
    public synchronized int hashCode() {
185
    public int hashCode() {
186
        return this.immutable.hashCode();
186
        return this.getImmutable().hashCode();
187
    }
187
    }
188
}
188
}