Interface TypedModelSpec2<M,​P1,​P2>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TypedModelSpec2<M,​P1,​P2>
    Same as TypedModelSpec, but with 2 parameters
    • Method Detail

      • from

        static <M,​P1,​P2> TypedModelSpec2<M,​P1,​P2> from​(ModelSpecBuilder<M> builder,
                                                                               TypedZPath2<P1,​P2> path)
        Return a new TypedModelSpec using the given model spec builder and typed path. When resolved(Object, Object) is called the actual model spec is generated with the resolved path
        Parameters:
        builder - model spec builder
        path - typed path
        Returns:
        new TypedModelSpec
      • from

        static <M,​P1,​P2> TypedModelSpec2<M,​P1,​P2> from​(ModelSpecBuilder<M> builder,
                                                                               java.lang.String pathWithIds)
        Return a new TypedModelSpec using the given model spec builder and path. A TypedZPath is created from the given full path and When resolved(Object, Object) is called the actual model spec is generated with the resolved path
        Parameters:
        builder - model spec builder
        pathWithIds - typed path
        Returns:
        new TypedModelSpec