インタフェース Rule<R>


@Deprecated
public interface Rule<R>
推奨されていません。
This class was provided as a layer to process values retrieved from content, but it was deprecated due to its limited use and redundancy.
An interface that abstracts the rules of content.

When implementing the Rule interface, please specify the type of the value returned by the execute() method as a generic type.

 If a concrete rule object returns String result:
 
 public class TestRule implements Rule<String> {
      // do something
 }
 
 
導入されたバージョン:
1.0.0
  • メソッドの概要

    修飾子とタイプ メソッド 説明
    R execute()
    推奨されていません。
    Search the content data and return as a result the data of the type specified in the generics.
  • メソッドの詳細

    • execute

      R execute()
      推奨されていません。
      Search the content data and return as a result the data of the type specified in the generics.

      This method returns the value of the generic type that you defined when declaring the Rule interface.

      戻り値:
      The value of the generic type defined when the Rule interface was declared.