angular-package
TwitterGitHub
Designing
Designing
  • Introduction
  • Definitions
    • Adjective: noun
    • Cohesion: noun
    • Cohesive: adjective
    • Cohesiveness: noun
    • Complex: adjective, noun
    • Complexity: noun
    • Consistency: noun
    • Consistent: adjective
    • Constantly: adverb
    • Diagnosis: noun
    • Functional: adjective
    • Functionality: noun
    • Get: verb
    • Have: verb
    • Immutable: adjective
    • Independent
    • Interdependence
    • Intuition: noun
    • Intuitive: adjective
    • Intuitiveness: noun
    • Is: verb
    • Logic: noun
    • Minimalism: noun
    • Mutable: adjective
    • Noun: noun
    • Phrase: noun, verb
    • Prefix: noun, verb
    • Preposition: noun
    • Purpose: noun
    • Replace: verb
    • Set: verb
    • Simplicity: noun
    • Suffix: noun, verb
    • Text: noun, verb
    • To: preposition
    • Verb: noun
  • Principles
    • String Wrapper Objects
  • Design processes
    • String Wrapper Objects
      • Methods usage analysis
      • Relevant questions
      • Investigation
      • Method names analysis
    • Wrap {}
      • Analysis
      • Accessors
      • Properties
      • Methods
        • hasOpening()
        • isWrapped()
    • Wrapper
  • Benefits
    • String Wrapper Object
      • Explanation
  • Other
    • @ Contact
    • ฿ Donate
Powered by GitBook
On this page
  • The basics
  • String Wrapper Object
  • The primitive value

Was this helpful?

  1. Principles

String Wrapper Objects

PreviousVerb: nounNextString Wrapper Objects

Last updated 3 years ago

Was this helpful?

The basics

  1. The object name must be .

  2. The object functionalities must be and reflect its name.

  3. The object should contain only crucial to achieve ease-extensibility.

  4. Method names must be and .

String Wrapper Object

The primitive value

  1. A primitive value is divided into private properties of generic type variables, which are part of it.

  2. Constructor parameters types are generic type variables to preserve the exact type.

  3. A primitive value type is built of generic type variables on the template literal, which results in the exact return type rather than just a string.

  4. The part of the primitive value is accessible by the use of get accessors.

  5. The parts of the primitive value are:

    1. stored in the private hashed properties,

    2. accessible through the get accessors,

    3. immutable, cause the use of the get accessor.

intuitive
intuitive
functionalities
consistent
intuitive