From: Artur Signell Date: Mon, 25 Jun 2012 16:02:37 +0000 (+0300) Subject: Changed AbstractInMemoryContainer.getItemIds() to return List (#8829) X-Git-Tag: 7.0.0.alpha3~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57ff1fc5b5597df4bf7a631fbf6bb507bc85d1f3;p=vaadin-framework.git Changed AbstractInMemoryContainer.getItemIds() to return List (#8829) --- diff --git a/src/com/vaadin/data/util/AbstractBeanContainer.java b/src/com/vaadin/data/util/AbstractBeanContainer.java index bed3ca0450..300f92ea3a 100644 --- a/src/com/vaadin/data/util/AbstractBeanContainer.java +++ b/src/com/vaadin/data/util/AbstractBeanContainer.java @@ -8,6 +8,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import com.vaadin.data.Container; @@ -247,8 +248,8 @@ public abstract class AbstractBeanContainer extends */ @Override @SuppressWarnings("unchecked") - public Collection getItemIds() { - return (Collection) super.getItemIds(); + public List getItemIds() { + return (List) super.getItemIds(); } /* diff --git a/src/com/vaadin/data/util/AbstractInMemoryContainer.java b/src/com/vaadin/data/util/AbstractInMemoryContainer.java index cc7f469c0c..795aabb419 100644 --- a/src/com/vaadin/data/util/AbstractInMemoryContainer.java +++ b/src/com/vaadin/data/util/AbstractInMemoryContainer.java @@ -165,8 +165,8 @@ public abstract class AbstractInMemoryContainer getItemIds() { - return Collections.unmodifiableCollection(getVisibleItemIds()); + public List getItemIds() { + return Collections.unmodifiableList(getVisibleItemIds()); } // Container.Ordered