You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yilai/OrderAnalysisStrategy.java

22 lines
479 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* 订单分析策略接口,定义订单数据分析的方法
*/
package com.orderprocessing;
import java.util.List;
import java.util.Map;
public interface OrderAnalysisStrategy {
/**
* 分析订单数据
* @param orders 订单列表
* @return 分析结果以Map形式返回
*/
Map<String, Object> analyze(List<Order> orders);
/**
* 获取分析策略名称
* @return 策略名称
*/
String getStrategyName();
}