3

我使用枚举编写了一个函数,用于使用此签名进行过滤:

/**
 * Match a profile with other profiles meaning they are similar.
 * 
 * @param profileId
 *            the profile to match
 * @param actuality
 *            the actuality to use for filtering
 * @return a ordered list of the best matching profiles
 */
public Match[] match(String profileId, Actuality actuality)

枚举看起来像这样:

public enum Actuality {
    /** Only show data within 5 days. */
    BRAND_NEW,
    /** Show data within 45 days. */
    NEW,
    /** Show all data. */
    ALL,
}

是否可以使用 JAX-RPC 远程实际枚举?如果您可以建议另一种使用 JAX-RPC 执行此操作的好方法(不仅仅是传递一个 int)也将非常有帮助。

4

0 回答 0