Class McpIcon.Builder
java.lang.Object
com.soklet.McpIcon.Builder
- Enclosing class:
McpIcon
Mutable builder for an immutable
McpIcon.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the icon MIME type.Replaces advertised icon sizes in supplied order.theme(@NonNull McpIconTheme theme) Sets the preferred icon theme.
-
Method Details
-
mimeType
Sets the icon MIME type.- Parameters:
mimeType- MIME type- Returns:
- this builder
- Throws:
IllegalArgumentException- if the MIME type has malformed syntax
-
sizes
Replaces advertised icon sizes in supplied order. Null or empty clears the property. The complete list is validated and snapshotted before replacing the prior value.- Parameters:
sizes- ASCII decimal WxH dimensions orany, or null to clear- Returns:
- this builder
- Throws:
IllegalArgumentException- if a size has malformed syntaxNullPointerException- if a list element is null
-
theme
Sets the preferred icon theme.- Parameters:
theme- icon theme- Returns:
- this builder
-
build
-