Return lists in Coll
This commit is contained in:
parent
8e68cb77b9
commit
19d5682741
@ -5,6 +5,7 @@ import java.util.Collections;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -135,13 +136,12 @@ public class Coll<E> implements CollInterface<E>
|
|||||||
|
|
||||||
@Override public Collection<E> getAll()
|
@Override public Collection<E> getAll()
|
||||||
{
|
{
|
||||||
|
|
||||||
return Collections.unmodifiableCollection(this.entity2id.keySet());
|
return Collections.unmodifiableCollection(this.entity2id.keySet());
|
||||||
}
|
}
|
||||||
@Override public Collection<E> getAll(Predictate<? super E> where) { return MStoreUtil.uglySQL(this.getAll(), where, null, null, null); }
|
@Override public List<E> getAll(Predictate<? super E> where) { return MStoreUtil.uglySQL(this.getAll(), where, null, null, null); }
|
||||||
@Override public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, null, null); }
|
@Override public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, null, null); }
|
||||||
@Override public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, limit, null); }
|
@Override public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, limit, null); }
|
||||||
@Override public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit, Integer offset) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, limit, offset); }
|
@Override public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit, Integer offset) { return MStoreUtil.uglySQL(this.getAll(), where, orderby, limit, offset); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String fixId(Object oid)
|
public String fixId(Object oid)
|
||||||
|
@ -2,6 +2,7 @@ package com.massivecraft.massivecore.store;
|
|||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
@ -42,10 +43,10 @@ public interface CollInterface<E>
|
|||||||
public String getId(Object entity);
|
public String getId(Object entity);
|
||||||
public boolean containsEntity(Object entity);
|
public boolean containsEntity(Object entity);
|
||||||
public Collection<E> getAll();
|
public Collection<E> getAll();
|
||||||
public Collection<E> getAll(Predictate<? super E> where);
|
public List<E> getAll(Predictate<? super E> where);
|
||||||
public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby);
|
public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby);
|
||||||
public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit);
|
public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit);
|
||||||
public Collection<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit, Integer offset);
|
public List<E> getAll(Predictate<? super E> where, Comparator<? super E> orderby, Integer limit, Integer offset);
|
||||||
|
|
||||||
public String fixId(Object oid);
|
public String fixId(Object oid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user