Tabnine Logo
SMFAttributeName.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.io7m.smfj.core.SMFAttributeName
constructor

Best Java code snippets using com.io7m.smfj.core.SMFAttributeName.<init> (Showing top 6 results out of 315)

origin: com.io7m.smfj/io7m-smfj-core

/**
 * Copy the current immutable object by setting a value for the {@link SMFAttributeNameType#value() value} attribute.
 * An equals check used to prevent copying of the same value by returning {@code this}.
 * @param value A new value for value
 * @return A modified copy of the {@code this} object
 */
public final SMFAttributeName withValue(String value) {
 if (this.value.equals(value)) return this;
 String newValue = Objects.requireNonNull(value, "value");
 return validate(new SMFAttributeName(this, newValue));
}
origin: com.io7m.smfj/io7m-smfj-core

/**
 * Construct a new immutable {@code SMFAttributeName} instance.
 * @param value The value for the {@code value} attribute
 * @return An immutable SMFAttributeName instance
 */
public static SMFAttributeName of(String value) {
 return validate(new SMFAttributeName(value));
}
origin: com.io7m.smfj/com.io7m.smfj.core

/**
 * Construct a new immutable {@code SMFAttributeName} instance.
 * @param value The value for the {@code value} attribute
 * @return An immutable SMFAttributeName instance
 */
public static SMFAttributeName of(String value) {
 return validate(new SMFAttributeName(value));
}
origin: com.io7m.smfj/com.io7m.smfj.core

/**
 * Copy the current immutable object by setting a value for the {@link SMFAttributeNameType#value() value} attribute.
 * An equals check used to prevent copying of the same value by returning {@code this}.
 * @param value A new value for value
 * @return A modified copy of the {@code this} object
 */
public final SMFAttributeName withValue(String value) {
 if (this.value.equals(value)) return this;
 String newValue = Objects.requireNonNull(value, "value");
 return validate(new SMFAttributeName(this, newValue));
}
origin: com.io7m.smfj/com.io7m.smfj.core

/**
 * Builds a new {@link SMFAttributeName SMFAttributeName}.
 * @return An immutable instance of SMFAttributeName
 * @throws java.lang.IllegalStateException if any required attributes are missing
 */
public SMFAttributeName build() {
 if (initBits != 0) {
  throw new IllegalStateException(formatRequiredAttributesMessage());
 }
 return SMFAttributeName.validate(new SMFAttributeName(null, value));
}
origin: com.io7m.smfj/io7m-smfj-core

/**
 * Builds a new {@link SMFAttributeName SMFAttributeName}.
 * @return An immutable instance of SMFAttributeName
 * @throws java.lang.IllegalStateException if any required attributes are missing
 */
public SMFAttributeName build() {
 if (initBits != 0) {
  throw new IllegalStateException(formatRequiredAttributesMessage());
 }
 return SMFAttributeName.validate(new SMFAttributeName(null, value));
}
com.io7m.smfj.coreSMFAttributeName<init>

Popular methods of SMFAttributeName

  • value
  • equals
    This instance is equal to all instances of SMFAttributeName that have equal attribute values.
  • hashCode
    Computes a hash code from attributes: value.
  • of
    Construct a new immutable SMFAttributeName instance.
  • builder
    Creates a builder for SMFAttributeName.
  • checkPreconditions
  • equalTo
  • validate

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ImageIO (javax.imageio)
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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