Package dev.tachyonmcp.api.server.domain
Interface Icon.Builder
- Enclosing interface:
Icon
public static interface Icon.Builder
Builder for
Icon.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theIcon.Sets the MIME type of the icon image.Sets the conventional size labels.default Icon.BuilderSets the conventional size labels.Sets the image URL or data URI.Sets the theme variant.
-
Method Details
-
src
Sets the image URL or data URI.- Parameters:
src- the icon source- Returns:
- this builder
-
mimeType
Sets the MIME type of the icon image.- Parameters:
mimeType- the MIME type, ornull- Returns:
- this builder
-
sizes
Sets the conventional size labels.- Parameters:
elements- size labels (e.g. "16x16"), ornull- Returns:
- this builder
-
sizes
Sets the conventional size labels.- Parameters:
elements- size labels (e.g. "16x16", "32x32")- Returns:
- this builder
-
theme
Sets the theme variant.- Parameters:
theme-"light","dark", ornullfor universal- Returns:
- this builder
-
build
Icon build()Builds theIcon.- Returns:
- the new icon
-