All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.configuration.io.Location Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.configuration.io;

/**
 * @since 12.1
 * @author Tristan Tarrant <[email protected]%gt;
 */
public class Location {
  private final String name;
  private final int line;
  private final int column;

  public Location(String name, int line, int column) {
    this.name = name;
    this.line = line;
    this.column = column;
  }

  public String getName() {
    return name;
  }

  public int getLineNumber() {
    return line;
  }

  public int getColumnNumber(){
    return column;
  }

  public String toString() {
    return (name != null ? name : "") + "[" + line + ',' + column + ']';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy