Namespace: sample.inheritance
View Source

# class StringClass

    sample.inheritance.TemplateClass<string>
      └ sample.inheritance.StringClass

All implemented interfaces:
  `sample.inheritance.Runnable`

This class extends another using Closure's goog.defineClass. This comment should be used for the class description, but be merged with the constructor documentation below.

## new StringClass(value)

Parameters

value `string`

  The initial value.

## Instance Methods

### run()code »

Specified by: sample.inheritance.Runnable

### substring(fromIndex, opt_toIndex)code »

Parameters

fromIndex `number`

  The starting index.

opt_toIndex `number=`

  The ending index.

Returns

`string`

  A substring of this instance's current value.

## Static Functions

### StringClass.isString(value)code »

Tests if a value is a string.

Parameters

value `*`

  The value to test.

Returns

`boolean`

  Whether the value is a string.