for Push.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KssSmaPlaLib.InBox
|
||||
{
|
||||
// インターフェース定義
|
||||
public interface IFilterUxer<T>
|
||||
{
|
||||
// 単一:候補がフィルタを通過できるか?
|
||||
bool CanPass(string candidate);
|
||||
|
||||
// 複数:1件でも通過できるか?(ガード句向け)
|
||||
bool HasAnyPass(IEnumerable<string> candidates);
|
||||
|
||||
// 複数:通過したものだけを返す(既存流儀)
|
||||
IEnumerable<string> ApplyFilter(IEnumerable<string> candidates);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user