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 * @param shape shape of dataset 015 * @param sshape shape of slice 016 */ 017 public NullIterator(int[] shape, int[] sshape) { 018 this.shape = shape; 019 this.sshape = sshape; 020 } 021 022 @Override 023 public boolean hasNext() { 024 return false; 025 } 026 027 @Override 028 public int[] getPos() { 029 return null; 030 } 031 032 @Override 033 public void reset() { 034 } 035}