OK, it implements IComparable and other interfaces (like IDisposable) in one class for violating the SRP principle .
SRP states that each class must implement the responsibility of the signature and the methods must be largely interconnected to achieve entire classes .
Is another responsibility compared?
Some clarifications would be appreciated.
, SRP, , , , . , , , ? IComparable, , . , SRP, , IComparable . , -, . , , , , , . IComparable , , , , , , , .
, Imomparable IDisposable , SRP.
SRP ( , ). -, . , , .
, SRC, " " . "", , , .
IComparable/IDisposable , (-) , ( ).
Source: https://habr.com/ru/post/1651935/More articles:Невозможно построить APK с помощью "com.google.android.gms: play-services: 9.4.0" - javaSubscribe RxJS Observed twice. Getting the response value twice - angularHow to replace NA with the last non-NA in the group? - rLimit JavaFX FileChooser source folder - javafxDynamically select data-based directive - javascriptQt Creator: Failed to install package: 0x80073cf3 on Windows 10 mobile - qtspring -data-redis 1.7.2 Не удалось выполнить команду redisTemplate для инъекций - javaWhy does the function return false? - javascriptDeploy a brilliant batch application on a brilliant server - rHow to avoid 1 + n database queries for a bi-directional optional one to one association in Hibernate? - spring-data-jpaAll Articles