Skip to content
Snippets Groups Projects
Select Git revision
  • 2fb10f044713fb03bc500998067875644bb5fb59
  • master default protected
  • emoUS
  • add_default_vectorizer_and_pretrained_loading
  • clean_code
  • readme
  • issue127
  • generalized_action_dicts
  • ppo_num_dialogues
  • crossowoz_ddpt
  • issue_114
  • robust_masking_feature
  • scgpt_exp
  • e2e-soloist
  • convlab_exp
  • change_system_act_in_env
  • pre-training
  • nlg-scgpt
  • remapping_actions
  • soloist
20 results

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    SourcePosition.txt 790 B
    /** 
     * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, 
     * Heinrich Heine Universitaet Duesseldorf
     * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) 
     * */
    
    package de.hhu.stups.sablecc.patch;
    
    public class SourcePosition implements Comparable<SourcePosition>  {
    
    	private final int line;
    
    	private final int pos;
    
    	public SourcePosition(final int line, final int pos) {
    		this.line = line;
    		this.pos = pos;
    	}
    
    	public int getLine() {
    		return line;
    	}
    
    	public int getPos() {
    		return pos;
    	}
    	
    	public int compareTo(SourcePosition that) {
    		if (that.line < line) return 1;
    		if (that.line > line) return -1;
    		return pos-that.pos;
    	}
    	
    	@Override
    	public String toString() {
    		return "(" + line + "," + pos + ")";
    	}
    	
    	
    }