Package sc.fiji.snt.analysis.curation
Record Class CurationTags.Partition
java.lang.Object
java.lang.Record
sc.fiji.snt.analysis.curation.CurationTags.Partition
- Enclosing class:
CurationTags
public static record CurationTags.Partition(List<Path> positive, List<Path> negative, List<Path> unsure, List<Path> unreviewed)
extends Record
Four-bucket breakdown returned by
CurationTags.partitionByReviewStatus(Tree). Lists are
never null; they may be empty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.negative()Returns the value of thenegativerecord component.positive()Returns the value of thepositiverecord component.intreviewed()Paths with any review status (i.e. anycur:*tag).final StringtoString()Returns a string representation of this record class.inttotal()Total path count across all four buckets.Returns the value of theunreviewedrecord component.unsure()Returns the value of theunsurerecord component.
-
Constructor Details
-
Partition
public Partition(List<Path> positive, List<Path> negative, List<Path> unsure, List<Path> unreviewed) Creates an instance of aPartitionrecord class.- Parameters:
positive- the value for thepositiverecord componentnegative- the value for thenegativerecord componentunsure- the value for theunsurerecord componentunreviewed- the value for theunreviewedrecord component
-
-
Method Details
-
total
public int total()Total path count across all four buckets. -
reviewed
public int reviewed()Paths with any review status (i.e. anycur:*tag). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
positive
Returns the value of thepositiverecord component.- Returns:
- the value of the
positiverecord component
-
negative
Returns the value of thenegativerecord component.- Returns:
- the value of the
negativerecord component
-
unsure
Returns the value of theunsurerecord component.- Returns:
- the value of the
unsurerecord component
-
unreviewed
Returns the value of theunreviewedrecord component.- Returns:
- the value of the
unreviewedrecord component
-