Codota Logo
SMFAttributeName.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain SMFAttributeName
private void myMethod () {
SMFAttributeName s =
  • Codota IconObject obj;String str;Objects.requireNonNull(obj, str)
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JFileChooser (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now