Class SingletonSet


  • public class SingletonSet
    extends Object
    Class used to cache large sets across multiple threads.
    • Constructor Summary

      Constructors 
      Constructor Description
      SingletonSet​(String contentType, String content)
      Create a SingletonSet using "#" as the comment character.
      SingletonSet​(String contentType, String content, String commentLeader)
      Create a SingletonSet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getAt​(int i)  
      Set<String> getMembers()
      Accessor for the members of the Set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingletonSet

        public SingletonSet​(String contentType,
                            String content)
        Create a SingletonSet using "#" as the comment character.
        Parameters:
        contentType - One of 'inline', 'file' or 'resource'.
        content - Either the content (for type 'inline') or the name of a file or resource.
      • SingletonSet

        public SingletonSet​(String contentType,
                            String content,
                            String commentLeader)
        Create a SingletonSet.
        Parameters:
        contentType - One of 'inline', 'file' or 'resource'.
        content - Either the content (for type 'inline') or the name of a file or resource.
        commentLeader - Use the supplied String as the comment leader.
    • Method Detail

      • getMembers

        public Set<String> getMembers()
        Accessor for the members of the Set.
        Returns:
        The members of this Set.
      • getAt

        public String getAt​(int i)