Example usage for com.google.common.collect Sets newLinkedHashSet

List of usage examples for com.google.common.collect Sets newLinkedHashSet

Introduction

In this page you can find the example usage for com.google.common.collect Sets newLinkedHashSet.

Prototype

public static <E> LinkedHashSet<E> newLinkedHashSet() 

Source Link

Document

Creates a mutable, empty LinkedHashSet instance.

Usage

From source file:org.eclipse.sirius.properties.core.internal.expressions.DomainClassSwitch.java

@Override
public Option<Collection<String>> doSwitch(EObject theEObject) {
    Option<Collection<String>> doSwitch = super.doSwitch(theEObject);
    if (doSwitch != null) {
        return doSwitch;
    }/*from   w w w  .j a  v  a  2 s.  co m*/
    Collection<String> defaultResult = Sets.newLinkedHashSet();
    return Options.newSome(defaultResult);
}