Package trafficcontrol
Class VerifyRequiredMethods
java.lang.Object
trafficcontrol.VerifyRequiredMethods
Verify that all classes have a toString method (unless the class in non-instantiable, or an enum, or abstract.
Verify that no class overrides equals without overriding hashCode.
Verify that classes that can be instantiated are Serializable for those classes that this makes sense.
Verify that no class overrides equals without overriding hashCode.
Verify that classes that can be instantiated are Serializable for those classes that this makes sense.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck that all classes that implement equals also implement hashCode.voidCheck that all classes implement the Serializable interface.voidCheck that all classes have a toString method.
-
Method Details
-
toStringTest
Check that all classes have a toString method. -
serializableTest
Check that all classes implement the Serializable interface. -
equalsAndHashCodeTest
Check that all classes that implement equals also implement hashCode.
-