stringsearchresult.java
来自「这是一个用于测试用的搜索引擎的案例」· Java 代码 · 共 25 行
JAVA
25 行
package ir.webutils;/** * Lightweight object for storing both the number of DIFFERENT strings * in a set of search strings that are found in a text as well as the total number * of occurrences in the text of ANY of the strings in the set. * * @author Ray Mooney */public class StringSearchResult extends Object { /** Number of different strings found */ public int numberFound; /** Total number of occurrences of any of the strings */ public int numberOccurrences; /** Construct result with a given numberFound and numberOccurrences */ public StringSearchResult(int numberFound, int numberOccurrences) { this.numberFound = numberFound; this.numberOccurrences = numberOccurrences; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?