File: StringWrapper.java

package info (click to toggle)
libsecondstring-java 0.1~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 764 kB
  • sloc: java: 9,592; xml: 114; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.wcohen.ss.api;

/**
 * Something that implements some of the functionality of Java's
 * string class, but which is a non-final class, and hence can also
 * cache additional information to facilitate later processing.
 */

public interface StringWrapper 
{
	/** Return the string that is wrapped. */
	public String unwrap();
	/** Return the i-th char of the wrapped string */
	public char charAt(int i);
	/** Return the length of the wrapped string */
	public int length();
}