target method

  1. @override
Spec<T> target(
  1. Class<T> type
)
override

Targets this spec towards a specific type.

This ensures type safety and explicit binding to a class type.

Implementation

@override
Spec<T> target(Class<T> type) {
  _root.type = type;
  return this;
}