~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to src/main/java/net/sf/ehcache/store/NullStore.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-06 14:53:07 UTC
  • mfrom: (1.1.7) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130506145307-v5bhw5yu70re00l3
Tags: 2.6.7-1
* Team upload.
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 *  Copyright 2003-2010 Terracotta, Inc.
 
2
 *  Copyright Terracotta, Inc.
3
3
 *
4
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
5
 *  you may not use this file except in compliance with the License.
24
24
import java.io.IOException;
25
25
import java.util.Collections;
26
26
import java.util.List;
 
27
import java.util.Set;
27
28
 
28
29
/**
29
30
 * A store implementation which does not store anything.
115
116
    /**
116
117
     * {@inheritDoc}
117
118
     */
 
119
    public boolean isTierPinned() {
 
120
        return false;
 
121
    }
 
122
 
 
123
    /**
 
124
     * {@inheritDoc}
 
125
     */
 
126
    public Set getPresentPinnedKeys() {
 
127
        return Collections.emptySet();
 
128
    }
 
129
 
 
130
    /**
 
131
     * {@inheritDoc}
 
132
     */
 
133
    public boolean isPersistent() {
 
134
        return false;
 
135
    }
 
136
 
 
137
    /**
 
138
     * {@inheritDoc}
 
139
     */
118
140
    public Element removeWithWriter(Object key, CacheWriterManager writerManager) throws CacheException {
119
141
        return null;
120
142
    }
306
328
    /**
307
329
     * {@inheritDoc}
308
330
     */
309
 
    public boolean removeIfTierNotPinned(final Object key) {
 
331
    public boolean removeIfNotPinned(final Object key) {
310
332
        return remove(key) != null;
311
333
    }
312
334