blob: 0e91d38e3c61b768bf4a3c97ab7415037bc28a44 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.syncslides.model;
/**
* An implementation of DynamicList that doesn't do anything. Useful for when the
* underlying dataset has not loaded.
*/
public class NoopList<E> implements DynamicList<E> {
@Override
public int getItemCount() {
return 0;
}
@Override
public E get(int i) {
return null;
}
@Override
public void addListener(ListListener listener) {
// Do nothing.
}
@Override
public void removeListener(ListListener listener) {
// Do nothing.
}
}