@Override protected XEntry<K, V> createBaseView(XOrderedMap<K, V> baseMap, ViewInfo viewInfo) { if (viewInfo instanceof OrderedMapViewInfos.LastEntry) { return baseMap.lastEntry(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XIterator<K> createBaseView(XKeySetView<K> baseKeySet, ViewInfo viewInfo) { if (viewInfo instanceof CollectionViewInfos.Iterator) { return baseKeySet.iterator(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XIterator<K> createBaseView(XOrderedKeySetView<K> baseKeySet, ViewInfo viewInfo) { if (viewInfo instanceof OrderedSetViewInfos.DescendingIterator) { return baseKeySet.descendingIterator(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XOrderedKeySetView<K> createBaseView(XOrderedMap<K, V> baseMap, ViewInfo viewInfo) { if (viewInfo instanceof OrderedMapViewInfos.DescendingKeySet) { return baseMap.descendingKeySet(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XOrderedMap<K, V> createBaseView(XOrderedMap<K, V> parentBase, ViewInfo viewInfo) { if (viewInfo instanceof OrderedMapViewInfos.DescendingMap) { return parentBase.descendingMap(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XIterator<E> createBaseView(XNavigableSet<E> baseParent, ViewInfo viewInfo) { if (viewInfo instanceof NavigableSetViewInfos.DescendingIterator) { return baseParent.descendingIterator(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@Override protected XNavigableSet<E> createBaseView(XNavigableSet<E> parentBase, ViewInfo viewInfo) { if (viewInfo instanceof NavigableSetViewInfos.DescendingSet) { return parentBase.descendingSet(); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@SuppressWarnings("unchecked") @Override protected XNavigableSet<E> createBaseView(XNavigableSet<E> parentBase, ViewInfo viewInfo) { if (viewInfo instanceof NavigableSetViewInfos.TailSetByFromElementAndInclusive) { NavigableSetViewInfos.TailSetByFromElementAndInclusive tailSetByFromElementAndInclusive = (NavigableSetViewInfos.TailSetByFromElementAndInclusive) viewInfo; return parentBase.tailSet( (E) tailSetByFromElementAndInclusive.getFromElement(), tailSetByFromElementAndInclusive.isInclusive()); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
@SuppressWarnings("unchecked") @Override protected XNavigableSet<E> createBaseView(XNavigableSet<E> parentBase, ViewInfo viewInfo) { if (viewInfo instanceof NavigableSetViewInfos.SubSetByFromElementAndFromInclusiveAndToElementAndToInclusive) { NavigableSetViewInfos.SubSetByFromElementAndFromInclusiveAndToElementAndToInclusive subSetViewInfo = (NavigableSetViewInfos .SubSetByFromElementAndFromInclusiveAndToElementAndToInclusive) viewInfo; return parentBase.subSet( (E) subSetViewInfo.getFromElement(), subSetViewInfo.isFromInclusive(), (E) subSetViewInfo.getToElement(), subSetViewInfo.isToInclusive()); } throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
protected XOrderedKeySetView<K> createBaseView( XOrderedKeySetView<K> parentBase, ViewInfo viewInfo) { throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }
protected XNavigableSet<E> createBaseView(XNavigableSet<E> parentBase, ViewInfo viewInfo) { throw new IllegalArgumentException(LAZY_COMMON_RESOURCE.get().illegalViewInfo()); }