001/*-
002 * Copyright 2015, 2016 Diamond Light Source Ltd.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 */
009
010package org.eclipse.january.dataset;
011
012public class NullIterator extends SliceIterator {
013
014        /**
015         * @since 2.3
016         */
017        public NullIterator() {
018        }
019
020        /**
021         * @param shape shape of dataset
022         * @param sshape shape of slice
023         */
024        public NullIterator(int[] shape, int[] sshape) {
025                this.shape = shape;
026                this.sshape = sshape;
027        }
028
029        @Override
030        public boolean hasNext() {
031                return false;
032        }
033
034        @Override
035        public int[] getPos() {
036                return null;
037        }
038
039        @Override
040        public void reset() {
041        }
042}