Index

F I L M N O P R S W 
All Classes and Interfaces|All Packages|Constant Field Values

F

FILE_PATH - Static variable in class org.example.PhoneClass
The file path for reading phone numbers.
FILE_PATH - Static variable in class org.example.PhoneStatic
The file path for reading phone numbers.
FILE_PATH - Static variable in class org.example.WordStatic
The file path for the Peach Story text file.

I

isNumberValid(String) - Method in class org.example.PhoneClass
Checks if a given number matches the REGEX_VALID_PHONE_NUMBER pattern.
isNumberValid(String) - Static method in class org.example.PhoneStatic
Checks if a phone number is valid based on the defined regular expression.

L

lines - Variable in class org.example.PhoneClass
List of lines read from the file.
listOfValidNumbers() - Method in class org.example.PhoneClass
Returns a list of valid phone numbers from the 'lines' field.
listOfValidNumbers(List<String>) - Static method in class org.example.PhoneStatic
Returns a list of valid phone numbers from the given list.

M

main(String[]) - Static method in class org.example.Main
The main method is the entry point of the application.
Main - Class in org.example
This is the main class of the program.
MATCH_ALL_WORDS_PATTERN - Static variable in class org.example.WordStatic
A regular expression pattern that matches all words in a given text.

N

numberOfInvalidNumbers() - Method in class org.example.PhoneClass
Returns the number of invalid phone numbers in the 'lines' field.
numberOfInvalidNumbers(List<String>) - Static method in class org.example.PhoneStatic
Returns the number of invalid phone numbers in the given list.
numberOfLines() - Method in class org.example.PhoneClass
Returns the number of lines in the 'lines' field.
numberOfLines(List<String>) - Static method in class org.example.PhoneStatic
Returns the number of lines in the given list.
numberOfLines(List<String>) - Static method in class org.example.WordStatic
Calculates the number of lines in a list of strings.
numberOfValidNumbers() - Method in class org.example.PhoneClass
Returns the number of valid phone numbers in the 'lines' field.
numberOfValidNumbers(List<String>) - Static method in class org.example.PhoneStatic
Returns the number of valid phone numbers in the given list.
numberOfWords(List<String>) - Static method in class org.example.WordStatic
Calculates the number of words in a list of strings.

O

org.example - package org.example
 

P

PhoneClass - Class in org.example
This class represents a phone number utility.
PhoneStatic - Class in org.example
This class represents a static utility for handling phone numbers.

R

readAllLinesAndReturn() - Static method in class org.example.PhoneStatic
Reads all lines from the file specified by PhoneStatic.FILE_PATH and returns them as a List.
readAllLinesAndReturn() - Static method in class org.example.WordStatic
Reads all lines from the default file and returns them as a list of strings.
readAllLinesAndReturn(String) - Static method in class org.example.PhoneStatic
Reads all lines from the specified file path and returns them as a List.
readAllLinesAndReturn(String) - Static method in class org.example.WordStatic
Reads all lines from a file and returns them as a list of strings.
readAllLinesAndStoreInField() - Method in class org.example.PhoneClass
Reads all lines from the file and stores them in the 'lines' field.
REGEX_VALID_PHONE_NUMBER - Static variable in class org.example.PhoneClass
Regular expression pattern to validate phone numbers.
REGEX_VALID_PHONE_NUMBER - Static variable in class org.example.PhoneStatic
Regular expression pattern for valid phone numbers.
removeComments() - Method in class org.example.PhoneClass
Removes lines that start with a hash (#) symbol.
removeComments(List<String>) - Static method in class org.example.PhoneStatic
Removes comments (lines starting with "#") from the given list of lines.
removeEmptyLines() - Method in class org.example.PhoneClass
Removes empty lines from the 'lines' field.
removeEmptyLines(List<String>) - Static method in class org.example.PhoneStatic
Removes empty lines from the given list of lines.
runTest(String, String) - Static method in class org.example.WordStatic
Counts the number of matches of a regular expression in a given text.

S

sortByValue(Map<String, Long>) - Static method in class org.example.WordStatic
Sorts a map of word frequencies by value in descending order.

W

wordFrequencies(List<String>) - Static method in class org.example.WordStatic
Calculates the frequency of each word in a list of strings.
WordStatic - Class in org.example
A utility class for performing various text analysis operations, such as counting lines, words, and word frequencies.
F I L M N O P R S W 
All Classes and Interfaces|All Packages|Constant Field Values