@@ -462,7 +462,7 @@ class ConstraintAnalysis(Generic[Score_]):
462
462
but still non-zero constraint weight; non-empty if constraint has matches.
463
463
This is a list to simplify access to individual elements,
464
464
but it contains no duplicates just like `set` wouldn't.
465
- summarize : str
465
+ summary : str
466
466
Returns a diagnostic text
467
467
that explains part of the score quality through the ConstraintAnalysis API.
468
468
match_count : int
@@ -475,7 +475,7 @@ def __init__(self, delegate: '_JavaConstraintAnalysis[Score_]'):
475
475
delegate .constraintRef ()
476
476
477
477
def __str__ (self ):
478
- return self .summarize ()
478
+ return self .summary
479
479
480
480
@property
481
481
def constraint_ref (self ) -> ConstraintRef :
@@ -507,7 +507,8 @@ def match_count(self) -> int:
507
507
def score (self ) -> Score_ :
508
508
return to_python_score (self ._delegate .score ())
509
509
510
- def summarize (self ) -> str :
510
+ @property
511
+ def summary (self ) -> str :
511
512
return self ._delegate .summarize ()
512
513
513
514
@@ -541,7 +542,7 @@ class ScoreAnalysis:
541
542
constraint_analyses : list[ConstraintAnalysis]
542
543
Individual ConstraintAnalysis instances that make up this ScoreAnalysis.
543
544
544
- summarize : str
545
+ summary : str
545
546
Returns a diagnostic text that explains the solution through the `ConstraintAnalysis` API to identify which
546
547
Constraints cause that score quality.
547
548
The string is built fresh every time the method is called.
@@ -566,7 +567,7 @@ def __init__(self, delegate: '_JavaScoreAnalysis'):
566
567
self ._delegate = delegate
567
568
568
569
def __str__ (self ):
569
- return self .summarize ()
570
+ return self .summary
570
571
571
572
def __sub__ (self , other ):
572
573
return self .diff (other )
@@ -621,7 +622,8 @@ def constraint_analysis(self, *args) -> ConstraintAnalysis:
621
622
else :
622
623
return ConstraintAnalysis (self ._delegate .getConstraintAnalysis (args [0 ], args [1 ]))
623
624
624
- def summarize (self ) -> str :
625
+ @property
626
+ def summary (self ) -> str :
625
627
return self ._delegate .summarize ()
626
628
627
629
@property
0 commit comments