test_class.file: common/src/test/java/com/scottlogic/datahelix/generator/common/whitelist/WeightedElementTest.java
test_class.identifier: WeightedElementTest
test_case.body: @Test
      public void testConstructorRetainsWeight() {
          final double weight = 64.0D;
          WeightedElement<String> weightedElement = new WeightedElement<>("A string", weight);
  
          assertEquals(weight, weightedElement.weight());
      }
test_case.class_method_signature: WeightedElementTest.testConstructorRetainsWeight()
test_case.full_signature: @Test public void testConstructorRetainsWeight()
test_case.identifier: testConstructorRetainsWeight
test_case.invocations: assertEquals weight
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConstructorRetainsWeight()
focal_class.declarator: DEFAULT_WEIGHT = 1.0D
focal_class.modifier: private static final
focal_class.original_string: private static final double DEFAULT_WEIGHT = 1.0D;
focal_class.type: double
focal_class.var_name: DEFAULT_WEIGHT
focal_class.declarator: NULL = withDefaultWeight(null)
focal_class.modifier: private static final
focal_class.original_string: private static final WeightedElement<?> NULL = withDefaultWeight(null);
focal_class.type: WeightedElement<?>
focal_class.var_name: NULL
focal_class.declarator: element
focal_class.modifier: private final
focal_class.original_string: private final E element;
focal_class.type: E
focal_class.var_name: element
focal_class.declarator: weight
focal_class.modifier: private final
focal_class.original_string: private final double weight;
focal_class.type: double
focal_class.var_name: weight
focal_class.file: common/src/main/java/com/scottlogic/datahelix/generator/common/whitelist/WeightedElement.java
focal_class.identifier: WeightedElement
focal_class.class_method_signature: WeightedElement.WeightedElement(final E element, final double weight)
focal_class.full_signature: public  WeightedElement(final E element, final double weight)
focal_class.identifier: WeightedElement
focal_class.modifiers: public
focal_class.parameters: (final E element, final double weight)
focal_class.signature:  WeightedElement(final E element, final double weight)
focal_class.class_method_signature: WeightedElement.element()
focal_class.full_signature: public E element()
focal_class.identifier: element
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: E
focal_class.signature: E element()
focal_class.class_method_signature: WeightedElement.weight()
focal_class.full_signature: public double weight()
focal_class.identifier: weight
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double weight()
focal_class.class_method_signature: WeightedElement.withDefaultWeight(final T element)
focal_class.full_signature: public static WeightedElement<T> withDefaultWeight(final T element)
focal_class.identifier: withDefaultWeight
focal_class.modifiers: public static
focal_class.parameters: (final T element)
focal_class.return: WeightedElement<T>
focal_class.signature: WeightedElement<T> withDefaultWeight(final T element)
focal_class.class_method_signature: WeightedElement.ofNull()
focal_class.full_signature: @SuppressWarnings("unchecked") public static WeightedElement<T> ofNull()
focal_class.identifier: ofNull
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: ()
focal_class.return: WeightedElement<T>
focal_class.signature: WeightedElement<T> ofNull()
focal_class.class_method_signature: WeightedElement.parseValue(WeightedElement element, Function<Object, Object> parse)
focal_class.full_signature: public static Object parseValue(WeightedElement element, Function<Object, Object> parse)
focal_class.identifier: parseValue
focal_class.modifiers: public static
focal_class.parameters: (WeightedElement element, Function<Object, Object> parse)
focal_class.return: Object
focal_class.signature: Object parseValue(WeightedElement element, Function<Object, Object> parse)
focal_class.class_method_signature: WeightedElement.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: WeightedElement.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: WeightedElement.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public double weight() {
          return weight;
      }
focal_method.class_method_signature: WeightedElement.weight()
focal_method.full_signature: public double weight()
focal_method.identifier: weight
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: double
focal_method.signature: double weight()