From 6c6a6707504ef08dbd832671741d2d725ab53072 Mon Sep 17 00:00:00 2001 From: Speiger Date: Sat, 9 Jan 2021 18:41:56 +0100 Subject: [PATCH] Fixed Bugs that were introduced. --- .../assets/collections/templates/utils/Sets.template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/speiger/assets/collections/templates/utils/Sets.template b/src/main/resources/speiger/assets/collections/templates/utils/Sets.template index 0136f775..ca9f5a21 100644 --- a/src/main/resources/speiger/assets/collections/templates/utils/Sets.template +++ b/src/main/resources/speiger/assets/collections/templates/utils/Sets.template @@ -14,6 +14,7 @@ import speiger.src.collections.PACKAGE.sets.SORTED_SET; import speiger.src.collections.PACKAGE.utils.COLLECTIONS.EmptyCollection; import speiger.src.collections.PACKAGE.utils.COLLECTIONS.SynchronizedCollection; import speiger.src.collections.PACKAGE.utils.COLLECTIONS.UnmodifiableCollection; +import speiger.src.collections.utils.ITrimmable; public class SETS { @@ -213,14 +214,14 @@ public class SETS { ITrimmable trim; - public SynchronizedSortedTrimSet(NAVIGABLE_SET KEY_GENERIC_TYPE c) { + public SynchronizedNavigableTrimSet(NAVIGABLE_SET KEY_GENERIC_TYPE c) { super(c); trim = (ITrimmable)c; } - public SynchronizedSortedTrimSet(NAVIGABLE_SET KEY_GENERIC_TYPE c, Object mutex) { + public SynchronizedNavigableTrimSet(NAVIGABLE_SET KEY_GENERIC_TYPE c, Object mutex) { super(c, mutex); - trim = c; + trim = (ITrimmable)c; } @Override @@ -312,7 +313,7 @@ public class SETS public SynchronizedSortedTrimSet(SORTED_SET KEY_GENERIC_TYPE c, Object mutex) { super(c, mutex); - trim = c; + trim = (ITrimmable)c; } @Override @@ -387,7 +388,7 @@ public class SETS public SynchronizedTrimSet(SET KEY_GENERIC_TYPE c, Object mutex) { super(c, mutex); - trim = c; + trim = (ITrimmable)c; } @Override