Package nl.vpro.domain.image
Class ImageSource
- java.lang.Object
-
- nl.vpro.domain.image.ImageSource
-
public class ImageSource extends Object
Representation of one image URL- See Also:
BasicBackendImageMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageSource.Builderstatic classImageSource.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NonNull ImageSource.Builderbuilder()protected booleancanEqual(@Nullable Object other)booleanequals(@Nullable Object o)AreagetAreaOfInterest()DimensiongetDimension()ImageSource.TypegetType()URIgetUrl()inthashCode()static ImageSource.BuilderthumbNail(String url)StringtoString()@NonNull ImageSourcewithAreaOfInterest(Area areaOfInterest)@NonNull ImageSourcewithDimension(Dimension dimension)@NonNull ImageSourcewithType(ImageSource.Type type)@NonNull ImageSourcewithUrl(URI url)
-
-
-
Method Detail
-
thumbNail
public static ImageSource.Builder thumbNail(String url)
-
builder
public static @NonNull ImageSource.Builder builder()
-
withUrl
public @NonNull ImageSource withUrl(URI url)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
public @NonNull ImageSource withType(ImageSource.Type type)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDimension
public @NonNull ImageSource withDimension(Dimension dimension)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAreaOfInterest
public @NonNull ImageSource withAreaOfInterest(Area areaOfInterest)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getUrl
public URI getUrl()
-
getType
public ImageSource.Type getType()
-
getDimension
public Dimension getDimension()
-
getAreaOfInterest
public Area getAreaOfInterest()
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
-