T
- the type to storepublic class SimpleInMemoryRepository<T> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleInMemoryRepository.Callback<T>
Callback used to update a value.
|
Constructor and Description |
---|
SimpleInMemoryRepository() |
Modifier and Type | Method and Description |
---|---|
long |
count() |
Iterable<T> |
findAll() |
Iterable<T> |
findAllWithPrefix(String prefix) |
T |
findOne(String name) |
protected NavigableMap<String,T> |
getValues() |
void |
remove(String name) |
void |
set(String name,
T value) |
void |
setValues(ConcurrentNavigableMap<String,T> values) |
T |
update(String name,
SimpleInMemoryRepository.Callback<T> callback) |
public T update(String name, SimpleInMemoryRepository.Callback<T> callback)
public long count()
public void remove(String name)
public void setValues(ConcurrentNavigableMap<String,T> values)
protected NavigableMap<String,T> getValues()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.