Finished Code Cleanup with Compute functions and added ReversedWrappers

This commit is contained in:
2023-06-14 17:40:27 +02:00
parent 5e67e45910
commit ef5fdbd377
12 changed files with 853 additions and 8 deletions
@@ -413,6 +413,11 @@ public class LISTS
return LISTS.synchronize(l.subList(from, to));
}
@Override
public LIST KEY_GENERIC_TYPE reversed() {
return LISTS.synchronize(l.reversed());
}
@Override
public void size(int size) { synchronized(mutex) { l.size(size); } }
@@ -535,6 +540,11 @@ public class LISTS
return LISTS.unmodifiable(l.subList(from, to));
}
@Override
public LIST KEY_GENERIC_TYPE reversed() {
return LISTS.unmodifiable(l.reversed());
}
@Override
public void size(int size) { throw new UnsupportedOperationException(); }
@@ -636,6 +646,9 @@ public class LISTS
@Override
public LIST KEY_GENERIC_TYPE subList(int from, int to) { throw new UnsupportedOperationException(); }
@Override
public LIST KEY_GENERIC_TYPE reversed() { return this; }
@Override
public void size(int size) { throw new UnsupportedOperationException(); }