| /*=============================================================================# |
| # Copyright (c) 2009, 2020 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================*/ |
| |
| package org.eclipse.statet.rj.data.impl; |
| |
| import org.eclipse.statet.rj.data.RStore; |
| |
| |
| public class RRawStructStore extends AbstractRawStore { |
| |
| |
| public RRawStructStore() { |
| } |
| |
| |
| @Override |
| protected final boolean isStructOnly() { |
| return true; |
| } |
| |
| |
| @Override |
| public final long getLength() { |
| return -1; |
| } |
| |
| @Override |
| public Byte get(final int idx) { |
| throw new UnsupportedOperationException(); |
| } |
| |
| @Override |
| public Byte get(final long idx) { |
| throw new UnsupportedOperationException(); |
| } |
| |
| @Override |
| public final Byte[] toArray() { |
| throw new UnsupportedOperationException(); |
| } |
| |
| |
| @Override |
| public long indexOfNA(final long fromIdx) { |
| throw new UnsupportedOperationException(); |
| } |
| |
| @Override |
| public long indexOf(final int integer, final long fromIdx) { |
| throw new UnsupportedOperationException(); |
| } |
| |
| @Override |
| public long indexOf(final String character, final long fromIdx) { |
| throw new UnsupportedOperationException(); |
| } |
| |
| |
| @Override |
| public boolean allEqual(final RStore<?> other) { |
| return (RAW == other.getStoreType() |
| && -1 == other.getLength() ); |
| } |
| |
| } |