Package com.streamconverter.sloc
Record Class ModuleSloc
java.lang.Object
java.lang.Record
com.streamconverter.sloc.ModuleSloc
- Record Components:
name- モジュール名lines- 総行数(missed + covered)covered- カバー済み行数missed- 未カバー行数
- All Implemented Interfaces:
Serializable
public record ModuleSloc(String name, int lines, int covered, int missed)
extends Record
implements Serializable
モジュールごとの SLOC(実行可能行数)情報。
パイプライン内コマンド間の中間データとして ObjectOutputStream / ObjectInputStream
で受け渡しされる。
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleSloc(String name, int lines, int covered, int missed) Creates an instance of aModuleSlocrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcovered()Returns the value of thecoveredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlines()Returns the value of thelinesrecord component.intmissed()Returns the value of themissedrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TOTAL_NAME
合計行を表すname()の標準値。- See Also:
-
-
Constructor Details
-
Method Details
-
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
covered
Returns the value of thecoveredrecord component.- Returns:
- the value of the
coveredrecord component
-
missed
Returns the value of themissedrecord component.- Returns:
- the value of the
missedrecord component
-