Tabnine Logo
HardSoftScore.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore

Best Java code snippets using org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore.toString (Showing top 3 results out of 315)

origin: kiegroup/optaplanner

@Override
public void marshal(Object scoreObject, HierarchicalStreamWriter writer, MarshallingContext context) {
  HardSoftScore score = (HardSoftScore) scoreObject;
  writer.setValue(score.toString());
}
origin: kiegroup/optaplanner

@Test
public void testToString() {
  assertEquals("0hard/-258soft", HardSoftScore.of(0, -258).toString());
  assertEquals("-147hard/-258soft", HardSoftScore.of(-147, -258).toString());
  assertEquals("-7init/-147hard/-258soft", HardSoftScore.ofUninitialized(-7, -147, -258).toString());
}
origin: org.optaplanner/optaplanner-persistence-xstream

@Override
public void marshal(Object scoreObject, HierarchicalStreamWriter writer, MarshallingContext context) {
  HardSoftScore score = (HardSoftScore) scoreObject;
  writer.setValue(score.toString());
}
org.optaplanner.core.api.score.buildin.hardsoftHardSoftScoretoString

Popular methods of HardSoftScore

  • of
  • ofUninitialized
  • parseScore
  • getSoftScore
  • getHardScore
    The total of the broken negative hard constraints and fulfilled positive hard constraints. Their wei
  • getInitScore
  • ofSoft
  • <init>
  • add
  • assertNoInitScore
  • buildShortString
  • divide
  • buildShortString,
  • divide,
  • equals,
  • getInitPrefix,
  • isFeasible,
  • multiply,
  • negate,
  • ofHard,
  • parseInitScore

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now