]> git.mxchange.org Git - jcore.git/commitdiff
Changed to SortedSet to keep ordering
authorRoland Haeder <roland@mxchange.org>
Tue, 1 Sep 2015 09:30:12 +0000 (11:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 1 Sep 2015 09:30:12 +0000 (11:30 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/result/DatabaseResult.java
src/org/mxchange/jcore/database/result/Result.java

index 352d0419846db2a53568c195e0d43de304120455..ca36f22e067428d8c32ca04afcf7e24f78325f63 100644 (file)
@@ -22,7 +22,6 @@ import java.sql.SQLWarning;
 import java.text.MessageFormat;
 import java.util.Collections;
 import java.util.Iterator;
-import java.util.Set;
 import java.util.SortedSet;
 import java.util.TreeSet;
 import org.mxchange.jcore.BaseFrameworkSystem;
@@ -142,8 +141,8 @@ public class DatabaseResult extends BaseFrameworkSystem implements Result<Storab
        }
 
        @Override
-       public Set<? extends Storable> resultSet () {
+       public SortedSet<? extends Storable> resultSet () {
                // Return it unmodifiable
-               return Collections.unmodifiableSet(this.result);
+               return Collections.unmodifiableSortedSet(this.result);
        }
 }
index 4a733e12314fc0f960f42adacb6223cd33fe3dbb..8337c5e3159695730e996c15f869c374da488c2d 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jcore.database.result;
 
 import java.sql.SQLWarning;
 import java.util.Iterator;
-import java.util.Set;
+import java.util.SortedSet;
 import org.mxchange.jcore.FrameworkInterface;
 import org.mxchange.jcore.database.storage.Storable;
 
@@ -63,5 +63,5 @@ public interface Result<T extends Storable> extends FrameworkInterface, Iterator
         *
         * @return A map from this result
         */
-       public Set<? extends Storable> resultSet ();
+       public SortedSet<? extends Storable> resultSet ();
 }