All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.serialized.client.reaction.ReactionDefinitions Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package io.serialized.client.reaction;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import static java.util.Collections.unmodifiableList;

public class ReactionDefinitions {

  private List definitions;

  public static ReactionDefinitions newDefinitionList(Collection definitions) {
    ReactionDefinitions reactionDefinitions = new ReactionDefinitions();
    reactionDefinitions.definitions = new ArrayList<>(definitions);
    return reactionDefinitions;
  }

  public List getDefinitions() {
    return unmodifiableList(definitions);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy