Package nl.vpro.domain.image
Class ImageMetadataImpl
- java.lang.Object
-
- nl.vpro.domain.image.ImageMetadataImpl
-
- All Implemented Interfaces:
ImageMetadata,Metadata<ImageMetadata>,Trackable
public class ImageMetadataImpl extends Object implements ImageMetadata
This is the basic image presentation at VPRO. It implementsImageMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageMetadataImpl.Builder-
Nested classes/interfaces inherited from interface nl.vpro.domain.image.Metadata
Metadata.LombokBuilder<SELF extends Metadata.LombokBuilder<SELF>>
-
-
Method Summary
-
-
-
Method Detail
-
getSourceSetString
@Beta public String getSourceSetString()
-
getPointOfInterest
public RelativePoint getPointOfInterest()
This is horrible. See JDK bug- Specified by:
getPointOfInterestin interfaceImageMetadata
-
builder
public static @NonNull ImageMetadataImpl.Builder builder()
-
toBuilder
public @NonNull ImageMetadataImpl.Builder toBuilder()
-
getType
public ImageType getType()
- Specified by:
getTypein interfaceMetadata<ImageMetadata>
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceMetadata<ImageMetadata>
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceMetadata<ImageMetadata>
-
getAlternative
public String getAlternative()
- Specified by:
getAlternativein interfaceMetadata<ImageMetadata>
-
getLicense
public nl.vpro.domain.support.License getLicense()
- Specified by:
getLicensein interfaceMetadata<ImageMetadata>
-
getSource
public String getSource()
Description copied from interface:MetadataSome URI describing where this image was original coming from.- Specified by:
getSourcein interfaceMetadata<ImageMetadata>
-
getSourceName
public String getSourceName()
Description copied from interface:MetadataA description for the source of this image.- Specified by:
getSourceNamein interfaceMetadata<ImageMetadata>
-
getCredits
public String getCredits()
Description copied from interface:MetadataWho or what has credits.- Specified by:
getCreditsin interfaceMetadata<ImageMetadata>
-
getHeight
public Integer getHeight()
- Specified by:
getHeightin interfaceMetadata<ImageMetadata>
-
getWidth
public Integer getWidth()
- Specified by:
getWidthin interfaceMetadata<ImageMetadata>
-
getLastModifiedInstant
public Instant getLastModifiedInstant()
- Specified by:
getLastModifiedInstantin interfaceTrackable
-
getCreationInstant
public Instant getCreationInstant()
- Specified by:
getCreationInstantin interfaceTrackable
-
getSourceSet
public ImageSourceSet getSourceSet()
Description copied from interface:ImageMetadataAs a map, for easier reference, but the causes a bit of pleonasm in key and value, we could also just do a set?- Specified by:
getSourceSetin interfaceImageMetadata
-
getCrids
public List<@CRID String> getCrids()
- Specified by:
getCridsin interfaceMetadata<ImageMetadata>
-
getAreaOfInterest
public Area getAreaOfInterest()
- Specified by:
getAreaOfInterestin interfaceImageMetadata
-
withType
public @NonNull ImageMetadataImpl withType(ImageType type)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
public @NonNull ImageMetadataImpl withTitle(String title)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDescription
public @NonNull ImageMetadataImpl withDescription(String description)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAlternative
public @NonNull ImageMetadataImpl withAlternative(String alternative)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLicense
public @NonNull ImageMetadataImpl withLicense(nl.vpro.domain.support.License license)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSource
public @NonNull ImageMetadataImpl withSource(String source)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSourceName
public @NonNull ImageMetadataImpl withSourceName(String sourceName)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCredits
public @NonNull ImageMetadataImpl withCredits(String credits)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHeight
public @NonNull ImageMetadataImpl withHeight(Integer height)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWidth
public @NonNull ImageMetadataImpl withWidth(Integer width)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLastModifiedInstant
public @NonNull ImageMetadataImpl withLastModifiedInstant(Instant lastModifiedInstant)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCreationInstant
public @NonNull ImageMetadataImpl withCreationInstant(Instant creationInstant)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSourceSet
public @NonNull ImageMetadataImpl withSourceSet(ImageSourceSet sourceSet)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCrids
public @NonNull ImageMetadataImpl withCrids(List<@CRID String> crids)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAreaOfInterest
public @NonNull ImageMetadataImpl withAreaOfInterest(Area areaOfInterest)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
-