Skip to content
Snippets Groups Projects
Commit a349bc07 authored by tpylak's avatar tpylak
Browse files

LMS-2027 minor: better toString

SVN: 19908
parent b4558eb9
No related branches found
No related tags found
No related merge requests found
......@@ -133,8 +133,11 @@ public class ImageDataSetInformation extends BasicDataSetInformation
@Override
public String toString()
{
return "[ dataset code: " + super.getDataSetCode() + ", tile Rows Number: "
+ tileRowsNumber + ", tile Columns Number: " + tileColumnsNumber + ", channels: "
String imgConfig =
imageStorageConfiguratonOrNull != null ? ", config = "
+ imageStorageConfiguratonOrNull.toString() : "";
return "[ dataset: " + super.getDataSetCode() + ", tile: " + tileRowsNumber + "x"
+ tileColumnsNumber + imgConfig + ", channels: "
+ CollectionUtils.abbreviate(channels, -1) + ", images: "
+ CollectionUtils.abbreviate(images, 20);
}
......
......@@ -16,6 +16,8 @@
package ch.systemsx.cisd.openbis.dss.etl.dto.api.v1;
import ch.systemsx.cisd.common.utilities.AbstractHashable;
/**
* Configuration of how images should be stored. By default:
* <UL>
......@@ -25,7 +27,7 @@ package ch.systemsx.cisd.openbis.dss.etl.dto.api.v1;
*
* @author Tomasz Pylak
*/
public class ImageStorageConfiguraton
public class ImageStorageConfiguraton extends AbstractHashable
{
/** No thumbnails are generated by default. */
private ThumbnailsStorageFormat thumbnailsStorageFormatOrNull = null;
......
......@@ -16,12 +16,14 @@
package ch.systemsx.cisd.openbis.dss.etl.dto.api.v1;
import ch.systemsx.cisd.common.utilities.AbstractHashable;
/**
* Configuration parameters which describe how thumbnails should be generated.
*
* @author Tomasz Pylak
*/
public class ThumbnailsStorageFormat
public class ThumbnailsStorageFormat extends AbstractHashable
{
/** Maximum default width and height of a thumbnail */
public static final int DEFAULT_THUMBNAIL_MAX_SIZE = 200;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment