Record Class ThreadSafety.Violation
java.lang.Object
java.lang.Record
com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
- Record Components:
path- The list of steps in the explanation.Example: ["Foo has field 'xs' of type 'int[]'", "arrays are not thread-safe"]
- Enclosing class:
ThreadSafety
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadSafety.Violationabsent()An empty explanation.static ThreadSafety.Violationfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true if a violation was found.message()Returns the explanation.static ThreadSafety.ViolationCreates an explanation with one step.org.pcollections.ConsPStack<String> path()Returns the value of thepathrecord component.Adds a step.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Violation
-
-
Method Details
-
create
-
isPresent
public boolean isPresent()Returns true if a violation was found. -
message
Returns the explanation. -
plus
Adds a step. -
of
Creates an explanation with one step. -
absent
An empty explanation. -
toString
-
hashCode
-
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). -
path
-