[jOOQ/jOOQ#10082] Add also XML.xml() method
This commit is contained in:
parent
7bf70bd54c
commit
23499724bd
@ -61,10 +61,23 @@ public final class XML implements Serializable {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@link XML} instance from string data input.
|
||||
*/
|
||||
public static final XML valueOf(String data) {
|
||||
return new XML(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@link XML} instance from string data input.
|
||||
* <p>
|
||||
* This is the same as {@link #valueOf(String)}, but it can be static
|
||||
* imported.
|
||||
*/
|
||||
public static final XML xml(String data) {
|
||||
return new XML(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user