Class PsyName

    • Constructor Detail

      • PsyName

        public PsyName​(CharSequence cs)
        Instantiate a new Ψ-name object with given name.
        Parameters:
        cs - a name.
      • PsyName

        public PsyName​(PsyStringy oStringy)
        Instantiate a new Ψ-name object with name given as Ψ- stringy object.
        Parameters:
        oStringy - a stringy.
    • Method Detail

      • stringValue

        public String stringValue()
        Returns a string value of this object’s value.
        Specified by:
        stringValue in interface PsyStringy
        Returns:
        a string value of this object.
      • psyLength

        public PsyInteger psyLength()
        Description copied from interface: PsyLengthy
        Returns a Ψ-integer representing the length of this object.
        Specified by:
        psyLength in interface PsyLengthy
        Returns:
        a Ψ-integer length (in characters) of this name.
      • psyUpperCase

        public PsyName psyUpperCase()
        Converts all of the characters in this object to upper case according to default locale and returns a new Ψ-name object representing the result of the conversion.
        Specified by:
        psyUpperCase in interface PsyStringy
        Returns:
        a Ψ-name result of upper-casing.
      • psyLowerCase

        public PsyName psyLowerCase()
        Converts all of the characters in this object to lower case according to default locale and returns a new Ψ-name object representing the result of the conversion.
        Specified by:
        psyLowerCase in interface PsyStringy
        Returns:
        a Ψ-name result of lower-casing.
      • toSyntaxString

        public String toSyntaxString()
        Returns a syntactic representation of this object’s value. Returns a value string prepended with /.
        Specified by:
        toSyntaxString in interface PsyObject
        Returns:
        a syntactic representation of this object’s value.
      • equals

        public boolean equals​(Object object)
        Returns a Ψ-boolean indicating whether some other Ψ-object is “equal to” this one. Return value is true if and only if other object has Ψ-name type and its value is equal to this one’s.
        Overrides:
        equals in class Object
        Returns:
        a result.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object