Class McpSkillGroup
java.lang.Object
com.soklet.McpSkillGroup
Immutable, explicitly grouped locale alternatives for one Skills name.
The key is an opaque application-defined, endpoint-local label, not a wire skill identifier. Grouping grants no access and does not select a language or translate file bytes. Group different content versions separately instead of relying on registration order to choose between same-locale versions.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NonNull McpSkillGroupfromKeyAndSkillRegistrations(@NonNull String key, @NonNull List<@NonNull McpSkillRegistration> skillRegistrations) Snapshots ordered alternatives sharing one validated skill name.getKey()inthashCode()toString()
-
Method Details
-
fromKeyAndSkillRegistrations
public static @NonNull McpSkillGroup fromKeyAndSkillRegistrations(@NonNull String key, @NonNull List<@NonNull McpSkillRegistration> skillRegistrations) Snapshots ordered alternatives sharing one validated skill name.An empty group is permitted. Among its members, registration URIs must be distinct under
URI.equals(Object)and locales must be unique, including at most one member with an undeclared locale. The key is preserved literally; it is neither trimmed nor normalized.- Parameters:
key- nonblank application-local group labelskillRegistrations- alternatives in application order, possibly empty- Returns:
- immutable group
- Throws:
NullPointerException- if the key, list, or a member is nullIllegalArgumentException- if the key is blank, member skill names differ, or member URIs or locales are duplicated
-
getKey
-
getSkillRegistrations
- Returns:
- immutable alternatives in the supplied order
-
equals
-
hashCode
-
toString
-