/*******************************************************************************
 * Copyright (c) 2014 BestSolution.at EDV Systemhaus GmbH/Austria,
 * http://www.BestSolution.at
 *
 * This file is part of framework-grid which was developed with funding
 * from DI Christoph Hermann - InformationsTechnologie Beratung Hermann
 * /Austria.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package at.bestsolution.framework.grid;

import java.util.List;

import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;

/**
 * Selection on the grid
 *
 * @param <R>
 *            the row type
 */
public interface XSelection<R> {
	/**
	 * @return the first entry or <code>null</code> if empty
	 */
	@Nullable
	R getFirst();

	/**
	 * @return as a list
	 */
	@NonNull
	List<@NonNull R> asList();

	/**
	 * @return check if empty
	 */
	boolean isEmpty();

	/**
	 * @return the list of meta data
	 */
	public @NonNull List<@NonNull XGridMetaData> getMetaData();
}

@@ -1229,16 +1229,46 @@
 ction%3CR%3E
+ extends XGridMetaDataProvider
  %7B%0A%09/**%0A
@@ -1489,112 +1489,5 @@
 ();%0A
-%0A%09/**%0A%09 * @return the list of meta data%0A%09 */%0A%09public @NonNull List%3C@NonNull XGridMetaData%3E getMetaData();%0A%7D%0A
+%7D

extend base interface