Created
August 27, 2015 13:30
-
-
Save jcrossley3/88d7cef02f56f6c70e3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014-2015 Red Hat, Inc, and individual contributors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
package org.projectodd.wunderboss.caching; | |
import org.infinispan.Cache; | |
import org.infinispan.CacheSet; | |
import org.infinispan.CacheCollection; | |
import org.infinispan.CacheStream; | |
import org.infinispan.commons.util.CloseableIterator; | |
import org.infinispan.commons.util.CloseableSpliterator; | |
import org.projectodd.wunderboss.codecs.Codec; | |
import java.util.AbstractCollection; | |
import java.util.Collection; | |
import java.util.AbstractMap.SimpleImmutableEntry; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.util.ArrayList; | |
public class CacheWithCodec8 extends CacheWithCodec { | |
public CacheWithCodec8(Cache cache, Codec codec) { | |
super(cache, codec); | |
} | |
@Override | |
public CacheSet keySet() { | |
return super.keySet(); | |
} | |
@Override | |
public CacheSet entrySet() { | |
return super.entrySet(); | |
} | |
@Override | |
public CacheCollection values() { | |
return super.values(); | |
} | |
abstract class NotSureYet<E> extends AbstractCollection<E> implements CacheSet<E> { | |
@Override | |
public int size() { | |
return 0; | |
} | |
@Override | |
CacheStream<E> stream() { | |
return (CacheStream) null; | |
} | |
@Override | |
CacheStream<E> parallelStream() { | |
return (CacheStream) null; | |
} | |
@Override | |
CloseableIterator<E> iterator() { | |
return (CloseableIterator) null; | |
} | |
@Override | |
CloseableSpliterator<E> spliterator() { | |
return (CloseableSpliterator) null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment