/******************************************************************************* * Copyright (c) 2007, 2010 Association for Decentralized Information Management * in Industry THTH ry. * 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: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.ui.utils; import java.util.Collection; /** * @author Antti Villberg * @author Marko Luukkainen * @Deprecated use org.simantics.utils.ui.AdaptionUtils */ @Deprecated public class AdaptionUtils { public static T adaptToSingle(Object o, Class clazz) { return org.simantics.utils.ui.AdaptionUtils.adaptToSingle(o, clazz); } /** * Adapts given object to collection of objects of given class. * @param o * @param clazz * @return collection of objects of given class. */ public static Collection adaptToCollection(Object o, Class clazz) { return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(o, clazz); } public static Collection adaptToCollection(Object arr[], Class clazz) { return org.simantics.utils.ui.AdaptionUtils.adaptToCollection(arr, clazz); } }