Tabnine Logo
XLink.hash
Code IndexAdd Tabnine to your IDE (free)

How to use
hash
method
in
org.apache.sis.xml.XLink

Best Java code snippets using org.apache.sis.xml.XLink.hash (Showing top 4 results out of 315)

origin: apache/sis

/**
 * Returns a hash code value for this XLink.
 */
@Override
public int hashCode() {
  int hash = hashCode;
  if (hash == 0) {
    hash = hash();
    // Do not save the hash code value, since it may change.
  }
  return hash;
}
origin: apache/sis

/**
 * Marks this {@code xlink} as unmodifiable. After this method call, any call to a setter
 * method will throw an {@link UnsupportedOperationException}.
 *
 * <p>After the first call to this method, any subsequent calls have no effect.</p>
 */
public void freeze() {
  if (hashCode == 0) {
    hashCode = hash();
  }
}
origin: org.apache.sis.core/sis-utility

/**
 * Marks this {@code xlink} as unmodifiable. After this method call, any call to a setter
 * method will throw an {@link UnsupportedOperationException}.
 *
 * <p>After the first call to this method, any subsequent calls have no effect.</p>
 */
public void freeze() {
  if (hashCode == 0) {
    hashCode = hash();
  }
}
origin: org.apache.sis.core/sis-utility

/**
 * Returns a hash code value for this XLink.
 */
@Override
public int hashCode() {
  int hash = hashCode;
  if (hash == 0) {
    hash = hash();
    // Do not save the hash code value, since it may change.
  }
  return hash;
}
org.apache.sis.xmlXLinkhash

Javadoc

Computes the hash code now. This method is guaranteed to return a value different than zero, in order to allow us to use 0 as a sentinel value for modifiable xlink.

Popular methods of XLink

  • <init>
    Creates a new link as a copy of the given link.
  • setHRef
    Sets the URN to a resources.
  • equals
    Compares this XLink with the given object for equality.
  • getHRef
    Returns a URN to an external resources, or to an other part of a XML document, or an identifier.
  • getType
    Returns the type of link. May have one of the following values: * simple: a simple link * extended:
  • hashCode
    Returns a hash code value for this XLink.
  • setActuate
    Sets the desired timing of traversal from the starting resource to the ending resource.
  • setRole
    Sets the URI reference for some description of the arc role.
  • setShow
    Sets the desired presentation of the ending resource on traversal from the starting resource.
  • setTitle
    Sets a human-readable string with a short description for the arc.
  • setType
    Sets the type of link. Any value different than org.apache.sis.xml.XLink.Type#AUTO (including null)
  • append
    Appends the given attribute in the given buffer if the attribute value is not null. If the given val
  • setType,
  • append,
  • canWrite,
  • fieldMask,
  • getActuate,
  • getArcRole,
  • getFrom,
  • getLabel,
  • getRole,
  • getShow

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 17 PhpStorm 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