Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
Class StringInternerImpl

    java.lang.Object
      org.apache.tapestry5.internal.services.StringInternerImpl

All Implemented Interfaces:
  StringInterner, InvalidationListener

    public class StringInternerImpl

extends java.lang.Object
implements StringInterner, InvalidationListener

Constructor Summary
`StringInternerImpl()`

Method Summary
`java.lang.String` | `format(java.lang.String format, java.lang.Object... arguments)` Formats a string (using `String.format(String, Object[])`) and returns the interned result.
`java.lang.String` | `intern(java.lang.String string)` Interns a string.
`void` | `objectWasInvalidated()` Invoked to indicate that some object is invalid.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StringInternerImpl

    public StringInternerImpl()

Method Detail

### objectWasInvalidated

    public void objectWasInvalidated()

  Description copied from interface: `InvalidationListener`
  Invoked to indicate that some object is invalid. The receiver should clear its cache.

  Specified by:
    `objectWasInvalidated` in interface `InvalidationListener`

### intern

    public java.lang.String intern(java.lang.String string)

  Description copied from interface: `StringInterner`
  Interns a string.

  Specified by:
    `intern` in interface `StringInterner`
  Parameters:
    `string` - the string to intern
  Returns:
    the input string, or another string instance with the same content

### format

    public java.lang.String format(java.lang.String format,
                                   java.lang.Object... arguments)

  Description copied from interface: `StringInterner`
  Formats a string (using `String.format(String, Object[])`) and returns the interned result.

  Specified by:
    `format` in interface `StringInterner`
  Parameters:
    `format` - string format
    `arguments` - used inside the format
  Returns:
    formatted and interned string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.