tfw.immutable.ila.longila.LongIlaFromStridedLongIla Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tfw Show documentation
Show all versions of tfw Show documentation
The FrameWork for building highly scalable and maintainable applications
The newest version!
package tfw.immutable.ila.longila;
import java.io.IOException;
import tfw.check.Argument;
public final class LongIlaFromStridedLongIla {
private LongIlaFromStridedLongIla() {}
public static LongIla create(final StridedLongIla stridedIla) {
Argument.assertNotNull(stridedIla, "stridedIla");
return new LongIlaImpl(stridedIla);
}
private static class LongIlaImpl extends AbstractLongIla {
private final StridedLongIla stridedIla;
private LongIlaImpl(final StridedLongIla stridedIla) {
this.stridedIla = stridedIla;
}
@Override
protected long lengthImpl() throws IOException {
return stridedIla.length();
}
@Override
public void getImpl(final long[] array, final int offset, final long start, int length) throws IOException {
stridedIla.get(array, offset, 1, start, length);
}
}
}
// AUTO GENERATED FROM TEMPLATE