fix formatting in PagingRequest#getPagingParams JavaDoc and reorder RecordEntity#getName method.
This commit is contained in:
@@ -53,23 +53,6 @@ public class RecordEntity extends AbstractEntity {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the name of the DNS record.
|
||||
* If the name contains a dot ('.'), only the substring before the first dot is returned.
|
||||
*
|
||||
* @return the name of the DNS record, potentially truncated before the first dot,
|
||||
* or the full name if no dot is present.
|
||||
*/
|
||||
public String getName() {
|
||||
if (name != null) {
|
||||
int pos = name.indexOf('.');
|
||||
if (pos > 0) {
|
||||
return name.substring(0, pos);
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds and returns a {@link RecordEntity} instance with the specified attributes.
|
||||
*
|
||||
@@ -117,4 +100,21 @@ public class RecordEntity extends AbstractEntity {
|
||||
rec.setId(id);
|
||||
return rec;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the name of the DNS record.
|
||||
* If the name contains a dot ('.'), only the substring before the first dot is returned.
|
||||
*
|
||||
* @return the name of the DNS record, potentially truncated before the first dot,
|
||||
* or the full name if no dot is present.
|
||||
*/
|
||||
public String getName() {
|
||||
if (name != null) {
|
||||
int pos = name.indexOf('.');
|
||||
if (pos > 0) {
|
||||
return name.substring(0, pos);
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user