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 interface Location {

  int getLineNumber();

  int getColumnNumber();

  static Location of(int line, int column) {
    return new Location() {
      @Override
      public int getLineNumber() {
        return line;
      }

      @Override
      public int getColumnNumber() {
        return column;
      }

      public String toString() {
        return "[" + line + ',' + column + ']';
      }
    };
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy