edu.mit.jwi.data.compare
Interface ICommentDetector

All Superinterfaces:
Comparator<String>
All Known Implementing Classes:
CommentComparator

public interface ICommentDetector
extends Comparator<String>

A detector for comment lines in data resources. Objects that implement this interface also serve as comparators that say how comment lines are ordered, if at all.

Since:
JWI 1.0
Version:
2.2.2
Author:
Mark A. Finlayson

Method Summary
 boolean isCommentLine(String line)
          Returns true if the specified string is a comment line, false otherwise.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

isCommentLine

boolean isCommentLine(String line)
Returns true if the specified string is a comment line, false otherwise.

Parameters:
line - the line to be analyzed
Returns:
true if the specified string is a comment line, false otherwise.
Throws:
NullPointerException - if the specified line is null
Since:
JWI 1.0


Copyright © 2011. All Rights Reserved.