mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 07:25:41 +00:00
feat: Add Service Stub Pattern using Sentiment Analysis example (#3215)
* Add Service Stub Pattern using Sentiment Analysis example * Fix Checkstyle issues * Suppress Sonar warning for Random usage in RealSentimentAnalysisServer
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.iluwatar.servicestub;
|
||||
|
||||
/**
|
||||
* Sentiment analysis server interface to be implemented by sentiment analysis services.
|
||||
*/
|
||||
|
||||
public interface SentimentAnalysisServer {
|
||||
/**
|
||||
* Analyzes the sentiment of the input text and returns the result.
|
||||
*
|
||||
* @param text the input text to analyze
|
||||
* @return sentiment classification result
|
||||
*/
|
||||
String analyzeSentiment(String text);
|
||||
}
|
||||
Reference in New Issue
Block a user