Example usage for java.util LinkedHashSet LinkedHashSet

List of usage examples for java.util LinkedHashSet LinkedHashSet

Introduction

In this page you can find the example usage for java.util LinkedHashSet LinkedHashSet.

Prototype

public LinkedHashSet() 

Source Link

Document

Constructs a new, empty linked hash set with the default initial capacity (16) and load factor (0.75).

Usage

From source file:de.vandermeer.skb.interfaces.coin.TailsNullWithErrors.java

/**
 * Creates a new null coin with given value and errors.
 * @param <M> the message type for the set
 * @return new error coin//from w ww .j  ava  2 s.c  o  m
 */
static <M> TailsNullWithErrors<M> create() {
    return new TailsNullWithErrors<M>() {
        final Set<M> errorSet = new LinkedHashSet<>();

        @Override
        public Set<M> getErrorMessages() {
            return this.errorSet;
        }
    };
}

From source file:org.ff4j.security.SpringSecurityAuthorisationManager.java

/** {@inheritDoc} */
public Set<String> getCurrentUserPermissions() {
    Set<String> listOfRoles = new LinkedHashSet<String>();
    Authentication auth = SecurityContextHolder.getContext().getAuthentication();
    if (!(auth instanceof AnonymousAuthenticationToken)) {
        for (GrantedAuthority grantedAuthority : auth.getAuthorities()) {
            listOfRoles.add(grantedAuthority.getAuthority());
        }/*from   w  ww  .  j a v  a2  s  .  co  m*/
    }
    return listOfRoles;
}

From source file:co.turnus.analysis.util.AnalysisUtil.java

public static int[] linspacei(int min, int max) {
    Set<Integer> values = new LinkedHashSet<Integer>();
    for (int i = min; i <= max; i++) {
        values.add(i);// ww  w .  j  a  v  a2s .co  m
    }
    return ArrayUtils.toPrimitive(values.toArray(new Integer[0]));
}

From source file:com.tussle.collision.ECBComponent.java

public void put(ScriptIterator iterator, StageElement<CollisionStadium> box) {
    if (!ecbs.containsKey(iterator))
        ecbs.put(iterator, new LinkedHashSet<>());
    ecbs.get(iterator).add(box);/*from w  w  w  . j a  v  a  2 s .  c  o m*/
}

From source file:com.tussle.collision.StageElementComponent.java

public void put(ScriptIterator iterator, StageElement surface) {
    if (!surfaces.containsKey(iterator))
        surfaces.put(iterator, new LinkedHashSet<>());
    surfaces.get(iterator).add(surface);
}

From source file:edu.eci.cosw.postresYa.stub.StubActividad.java

/**
 * El constructor del StubPostre instancia un nuevo objeto postre
 * y los almacena en memoria//from  w ww  . jav  a2  s. co m
 * @throws PostreException 
 */
public StubActividad() throws PostreException {
    postres = new LinkedHashSet<>();
    postresMap = new LinkedHashMap<>();
    postresImages = new LinkedHashMap<>();
    Actividad prueba = new Actividad("vocales",
            "se deben ensear las vocales con las que sean mas facil de escribir, en el siguiente orden i u e o a");
    postres.add(prueba);
    postresMap.put(prueba.getName(), prueba);
    postresImages.put(prueba.getName(), "src/main/resources/static/app/images/Postre1.png");
}

From source file:com.seneca.android.senefit.exlist.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_exlist);

    exercises = new LinkedHashSet<Exercise>();
    db = new DbHelper(this);

    Resources r = getResources();
    String[] items = r.getStringArray(R.array.exercise_array);

    lv = (ListView) findViewById(R.id.listView);
    //custAdapter cus = new custAdapter(this,items);
    // ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,names);
    // lv.setAdapter(adapter);
    new GetFitt().execute();

}

From source file:io.orchestrate.client.AbstractOperation.java

AbstractOperation() {
    listeners = new LinkedHashSet<OrchestrateFutureListener<T>>();
}

From source file:com.beaconhill.yqd.ProcessorCommand.java

public ProcessorCommand() {
    symbols = new LinkedHashSet<String>();
    dataDir = new DataDir();
    symbolFile = "";
    outStdio = true;
}

From source file:gov.nih.nci.cabig.caaers.web.ae.MandatoryProperties.java

public MandatoryProperties(ExpeditedReportTree tree) {
    mandatoryNodes = new LinkedHashSet<TreeNode>();
    realPropertyPaths = new LinkedHashSet<String>();
    this.tree = tree;
}