org.hibernate.validator.testutil.MyCustomStringImpl Maven / Gradle / Ivy
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.validator.testutil;
/**
* @author Hardy Ferentschik
*/
public class MyCustomStringImpl implements CharSequence {
private final String myString;
public MyCustomStringImpl(String s) {
this.myString = s;
}
@Override
public int length() {
return myString.length();
}
@Override
public char charAt(int i) {
return myString.charAt( i );
}
@Override
public CharSequence subSequence(int i, int j) {
return myString.subSequence( i, j );
}
@Override
public String toString() {
return myString;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy