Skip to main content

Name

Name

Utility class to help keep track of a string and when it has been changed.


Constructor

public Name

new Name(name)

Constructor for Name.

Parameters

  •  name: string – The initial name.

Properties

No publicly accessible properties on Name

private name: string

Description needed

private set: false | true

Description needed


Methods

public setName

setName(name) => void

Set a new name and mark it as set.

Parameters

  •  name: string – The new name.

public getName

getName() => string

Get the current name.

Returns

  •   string – The current name.

public isSet

isSet() => false | true

Returns whether or not the name has been changed.

Returns

  •   false | true – True if the name has been changed, False otherwise.

Static Methods

No static methods for Name