NameHash
ReferencesContains information that is useful to uniquely identify an object name. This object is immutable.
Constructors
NameHash
#Constructs a copy of a content hash.
protected NameHash()
NameHash
other
The other content hash to copy.
Creates a new NameHash, representing a piece of text.
Returns: A new hash
Creates a new NameHash, representing a piece of text.
public NameHash()
name,
A name. This can be null and can refer to a non-existing path.
parentId,
The id of the parent layer. This is only useful with layers.
type
Calls ModelComponent.ModelComponentTypeIgnoresCase(ModelComponentType) to determine if case should be used in search.
Returns: A new hash
Creates a new NameHash, representing a piece of text.
Returns: A new hash
Properties
Gets the NameHash flags. In some cases = number of mapped code points.
Only useful if this participates in a tree structure, as with layers.
Methods
Creates a copy of this name hash. Because content hash is immutable, this can be used as a deep copy.
Returns: A different instance of the same name hash.
Creates a new NameHash, representing the name of a file.
Determines if another name hash has the same value.
Returns: True if the two hashes are equal.
Equals
#Determines if another object is a name hash with same value.
Returns: True if the two hashes are equal.
Overrides: Object.Equals
GetHashCode
#Gets an hash code for this name hash. Two equal content hashes have equal hash code. The other way around might not be true.
Returns: An hash code value.
Overrides: Object.GetHashCode