congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TypedKey.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
play.libs.typedmap.TypedKey
constructor

Best Java code snippets using play.libs.typedmap.TypedKey.<init> (Showing top 20 results out of 315)

origin: com.typesafe.play/play_2.12

/**
 * Creates a TypedKey with the given name.
 *
 * @param displayName The name to display when printing this key.
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create(String displayName) {
  return new TypedKey<>(TypedKey$.MODULE$.apply(displayName));
}
origin: com.typesafe.play/play_2.11

/**
 * Creates a TypedKey with the given name.
 *
 * @param displayName The name to display when printing this key.
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create(String displayName) {
  return new TypedKey<>(TypedKey$.MODULE$.apply(displayName));
}
origin: com.typesafe.play/play_2.12

/**
 * Creates a TypedKey without a name.
 *
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create() {
  return new TypedKey<>(TypedKey$.MODULE$.apply());
}
origin: com.typesafe.play/play

/**
 * Creates a TypedKey with the given name.
 *
 * @param displayName The name to display when printing this key.
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create(String displayName) {
  return new TypedKey<>(TypedKey$.MODULE$.apply(displayName));
}
origin: com.typesafe.play/play

/**
 * Creates a TypedKey without a name.
 *
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create() {
  return new TypedKey<>(TypedKey$.MODULE$.apply());
}
origin: com.typesafe.play/play_2.11

/**
 * Creates a TypedKey without a name.
 *
 * @param <A> The type of value this key is associated with.
 * @return A fresh key.
 */
public static <A> TypedKey<A> create() {
  return new TypedKey<>(TypedKey$.MODULE$.apply());
}
origin: com.typesafe.play/play_2.11

/**
 * @param id the id to be used
 * @return the builder instance
 */
public RequestBuilder id(Long id) {
  attr(new TypedKey<>(RequestAttrKey.Id()), id);
  return this;
}
origin: com.typesafe.play/play

/**
 * @param id the id to be used
 * @return the builder instance
 */
public RequestBuilder id(Long id) {
  attr(new TypedKey<>(RequestAttrKey.Id()), id);
  return this;
}
origin: com.typesafe.play/play_2.12

/**
 * @param id the id to be used
 * @return the builder instance
 */
public RequestBuilder id(Long id) {
  attr(new TypedKey<>(RequestAttrKey.Id()), id);
  return this;
}
origin: com.typesafe.play/play_2.12

/**
 * Sets cookies in a request.
 * @param data a key value mapping of cookies
 * @return the builder instance
 */
public RequestBuilder flash(Map<String,String> data) {
  play.api.mvc.Flash flash = new play.api.mvc.Flash(Scala.asScala(data));
  attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(flash));
  return this;
}
origin: com.typesafe.play/play_2.12

/**
 * Sets all parameters for the session.
 * @param data a key value mapping of the session data
 * @return the builder instance
 */
public RequestBuilder session(Map<String,String> data) {
  play.api.mvc.Session session = new play.api.mvc.Session(Scala.asScala(data));
   attr(new TypedKey<>(RequestAttrKey.Session()), new AssignedCell<>(session));
  return this;
}
origin: com.typesafe.play/play_2.11

/**
 * Sets all parameters for the session.
 * @param data a key value mapping of the session data
 * @return the builder instance
 */
public RequestBuilder session(Map<String,String> data) {
  play.api.mvc.Session session = new play.api.mvc.Session(Scala.asScala(data));
   attr(new TypedKey<>(RequestAttrKey.Session()), new AssignedCell<>(session));
  return this;
}
origin: com.typesafe.play/play

/**
 * Sets all parameters for the session.
 * @param data a key value mapping of the session data
 * @return the builder instance
 */
public RequestBuilder session(Map<String,String> data) {
  play.api.mvc.Session session = new play.api.mvc.Session(Scala.asScala(data));
   attr(new TypedKey<>(RequestAttrKey.Session()), new AssignedCell<>(session));
  return this;
}
origin: com.typesafe.play/play_2.11

/**
 * Sets cookies in a request.
 * @param data a key value mapping of cookies
 * @return the builder instance
 */
public RequestBuilder flash(Map<String,String> data) {
  play.api.mvc.Flash flash = new play.api.mvc.Flash(Scala.asScala(data));
  attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(flash));
  return this;
}
origin: com.typesafe.play/play

/**
 * Sets cookies in a request.
 * @param data a key value mapping of cookies
 * @return the builder instance
 */
public RequestBuilder flash(Map<String,String> data) {
  play.api.mvc.Flash flash = new play.api.mvc.Flash(Scala.asScala(data));
  attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(flash));
  return this;
}
origin: com.typesafe.play/play

/**
 * Sets one cookie.
 * @param cookie the cookie to be set
 * @return the builder instance
 */
public RequestBuilder cookie(Cookie cookie) {
  play.api.mvc.Cookies newCookies = JavaHelpers$.MODULE$.mergeNewCookie(
      req.cookies(),
      cookie.asScala()
  );
  attr(new TypedKey<>(RequestAttrKey.Cookies()), new AssignedCell<>(newCookies));
  return this;
}
origin: com.typesafe.play/play_2.12

/**
 * Sets one cookie.
 * @param cookie the cookie to be set
 * @return the builder instance
 */
public RequestBuilder cookie(Cookie cookie) {
  play.api.mvc.Cookies newCookies = JavaHelpers$.MODULE$.mergeNewCookie(
      req.cookies(),
      cookie.asScala()
  );
  attr(new TypedKey<>(RequestAttrKey.Cookies()), new AssignedCell<>(newCookies));
  return this;
}
origin: com.typesafe.play/play_2.11

/**
 * Sets one cookie.
 * @param cookie the cookie to be set
 * @return the builder instance
 */
public RequestBuilder cookie(Cookie cookie) {
  play.api.mvc.Cookies newCookies = JavaHelpers$.MODULE$.mergeNewCookie(
      req.cookies(),
      cookie.asScala()
  );
  attr(new TypedKey<>(RequestAttrKey.Cookies()), new AssignedCell<>(newCookies));
  return this;
}
origin: com.typesafe.play/play_2.12

/**
 * Sets a cookie in the request.
 * @param key the key for the cookie
 * @param value the value for the cookie
 * @return the builder instance
 */
public RequestBuilder flash(String key, String value) {
  scala.collection.immutable.Map<String,String> data = req.flash().data();
  scala.collection.immutable.Map<String,String> newData = data.updated(key, value);
  play.api.mvc.Flash newFlash = new play.api.mvc.Flash(newData);
  attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(newFlash));
  return this;
}
origin: com.typesafe.play/play_2.11

/**
 * Sets a session.
 * @param key the key for the session
 * @param value the value associated with the key for the session
 * @return the builder instance
 */
public RequestBuilder session(String key, String value) {
  scala.collection.immutable.Map<String,String> data = req.session().data();
  scala.collection.immutable.Map<String,String> newData = data.updated(key, value);
  play.api.mvc.Session newSession = new play.api.mvc.Session(newData);
  attr(new TypedKey<>(RequestAttrKey.Session()), new AssignedCell<>(newSession));
  return this;
}
play.libs.typedmapTypedKey<init>

Popular methods of TypedKey

  • asScala
  • create
    Creates a TypedKey with the given name.

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Runner (org.openjdk.jmh.runner)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now