<commit_before>package com.opengamma.financial.model.option.definition;

/**
 * @author emcleod
 */

public class Barrier {

  public enum KnockType {
    IN, OUT
  }

  public enum BarrierType {
    DOWN, UP
  }

  private final KnockType _knock;
  private final BarrierType _barrier;
  private final double _value;

  public Barrier(KnockType knock, BarrierType barrier, double value) {
    _knock = knock;
    _barrier = barrier;
    _value = value;
  }

  public KnockType getKnockType() {
    return _knock;
  }

  public BarrierType getBarrierType() {
    return _barrier;
  }<commit_msg>Added javadoc and removed @author<commit_after>package com.opengamma.financial.model.option.definition;

/**
 *
 */

public class Barrier {

  /**
   * Knock type
   */
  public enum KnockType {
    /**
     * Knock-in
     */
    IN,
    /**
     * Knock-out
     */
    OUT
  }

  /**
   * Barrier type
   */
  public enum BarrierType {
    /**
     * Down
     */
    DOWN,
    /**
     * Up
     */
    UP
  }

  private final KnockType _knock;
  private final BarrierType _barrier;
  private final double _value;

  public Barrier(final KnockType knock, final BarrierType barrier, final double value) {
    _knock = knock;
    _barrier = barrier;
    _value = value;
  }

  public KnockType getKnockType() {
    return _knock;
  }

  public BarrierType getBarrierType() {
    return _barrier;
  }
{'fraction_non_alphanumeric': 0.0960573476702509, 'fraction_numerical': 0.0, 'mean_word_length': 2.4554455445544554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2142659', 'n_tokens_mistral': 488, 'n_tokens_neox': 451, 'n_words': 117}