blob: 58c76cc505fb9cdcb0e36d81746306a5a528bf13 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.utility.internal.model.value;
import java.util.Iterator;
import org.eclipse.jpt.utility.internal.model.Model;
/**
* Interface used to abstract collection accessing and
* change notification and make it more pluggable.
*/
public interface CollectionValueModel<E>
extends Model, Iterable<E>
{
/**
* Return the collection's values.
*/
Iterator<E> iterator();
String VALUES = "values";
/**
* Return the size of the collection value.
*/
int size();
}