mirror of https://github.com/usbharu/Hideout.git
fix: toStringを修正
This commit is contained in:
parent
48bbf6a53b
commit
ec848630ca
|
@ -50,6 +50,15 @@ open class Delete : Object, HasId, HasActor {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String =
|
override fun toString(): String {
|
||||||
"Delete(`object`=$apObject, published=$published, actor='$actor', id='$id') ${super.toString()}"
|
return "Delete(" +
|
||||||
|
"apObject=$apObject, " +
|
||||||
|
"published='$published', " +
|
||||||
|
"actor='$actor', " +
|
||||||
|
"id='$id'" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,5 +30,15 @@ open class Emoji(
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String = "Emoji(updated=$updated, icon=$icon) ${super.toString()}"
|
override fun toString(): String {
|
||||||
|
return "Emoji(" +
|
||||||
|
"name='$name', " +
|
||||||
|
"id='$id', " +
|
||||||
|
"updated='$updated', " +
|
||||||
|
"icon=$icon" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,5 +32,13 @@ open class Follow(
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String = "Follow(`object`=$apObject, actor='$actor') ${super.toString()}"
|
override fun toString(): String {
|
||||||
|
return "Follow(" +
|
||||||
|
"apObject='$apObject', " +
|
||||||
|
"actor='$actor'" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,15 @@ open class Undo(
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String =
|
override fun toString(): String {
|
||||||
"Undo(`object`=$apObject, published=$published, actor='$actor', id='$id') ${super.toString()}"
|
return "Undo(" +
|
||||||
|
"actor='$actor', " +
|
||||||
|
"id='$id', " +
|
||||||
|
"apObject=$apObject, " +
|
||||||
|
"published='$published'" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,25 +181,31 @@ data class Actor private constructor(
|
||||||
fun decrementPostsCount(): Actor = this.copy(postsCount = this.postsCount - 1)
|
fun decrementPostsCount(): Actor = this.copy(postsCount = this.postsCount - 1)
|
||||||
|
|
||||||
fun withLastPostAt(lastPostDate: Instant): Actor = this.copy(lastPostDate = lastPostDate)
|
fun withLastPostAt(lastPostDate: Instant): Actor = this.copy(lastPostDate = lastPostDate)
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "Actor(" +
|
return "Actor(" +
|
||||||
"id=$id, " +
|
"id=$id, " +
|
||||||
"name='$name', " +
|
"name='$name', " +
|
||||||
"domain='$domain', " +
|
"domain='$domain', " +
|
||||||
"screenName='$screenName', " +
|
"screenName='$screenName', " +
|
||||||
"description='$description', " +
|
"description='$description', " +
|
||||||
"inbox='$inbox', " +
|
"inbox='$inbox', " +
|
||||||
"outbox='$outbox', " +
|
"outbox='$outbox', " +
|
||||||
"url='$url', " +
|
"url='$url', " +
|
||||||
"publicKey='$publicKey', " +
|
"publicKey='$publicKey', " +
|
||||||
"privateKey=$privateKey, " +
|
"privateKey=$privateKey, " +
|
||||||
"createdAt=$createdAt, " +
|
"createdAt=$createdAt, " +
|
||||||
"keyId='$keyId', " +
|
"keyId='$keyId', " +
|
||||||
"followers=$followers, " +
|
"followers=$followers, " +
|
||||||
"following=$following, " +
|
"following=$following, " +
|
||||||
"instance=$instance, " +
|
"instance=$instance, " +
|
||||||
"locked=$locked" +
|
"locked=$locked, " +
|
||||||
")"
|
"followersCount=$followersCount, " +
|
||||||
|
"followingCount=$followingCount, " +
|
||||||
|
"postsCount=$postsCount, " +
|
||||||
|
"lastPostDate=$lastPostDate" +
|
||||||
|
")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,8 +39,18 @@ class HttpSignatureUser(
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString(): String {
|
||||||
|
return "HttpSignatureUser(" +
|
||||||
|
"domain='$domain', " +
|
||||||
|
"id=$id" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@Serial
|
@Serial
|
||||||
private const val serialVersionUID: Long = -3330552099960982997L
|
private const val serialVersionUID: Long = -3330552099960982997L
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,15 @@ class UserDetailsImpl(
|
||||||
@Serial
|
@Serial
|
||||||
private const val serialVersionUID: Long = -899168205656607781L
|
private const val serialVersionUID: Long = -899168205656607781L
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString(): String {
|
||||||
|
return "UserDetailsImpl(" +
|
||||||
|
"id=$id" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY)
|
||||||
|
|
|
@ -65,11 +65,20 @@ class StatusesRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "StatusesRequest(status=$status, mediaIds=$media_ids, poll=$poll, inReplyToId=$in_reply_to_id, " +
|
return "StatusesRequest(" +
|
||||||
"sensitive=$sensitive, spoilerText=$spoiler_text, visibility=$visibility, language=$language," +
|
"status=$status, " +
|
||||||
" scheduledAt=$scheduled_at)"
|
"media_ids=$media_ids, " +
|
||||||
|
"poll=$poll, " +
|
||||||
|
"in_reply_to_id=$in_reply_to_id, " +
|
||||||
|
"sensitive=$sensitive, " +
|
||||||
|
"spoiler_text=$spoiler_text, " +
|
||||||
|
"visibility=$visibility, " +
|
||||||
|
"language=$language, " +
|
||||||
|
"scheduled_at=$scheduled_at" +
|
||||||
|
")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Suppress("EnumNaming", "EnumEntryNameCase")
|
@Suppress("EnumNaming", "EnumEntryNameCase")
|
||||||
enum class Visibility {
|
enum class Visibility {
|
||||||
`public`,
|
`public`,
|
||||||
|
|
|
@ -5,6 +5,13 @@ import java.io.Serial
|
||||||
class LruCache<K, V>(private val maxSize: Int) : LinkedHashMap<K, V>(15, 0.75f, true) {
|
class LruCache<K, V>(private val maxSize: Int) : LinkedHashMap<K, V>(15, 0.75f, true) {
|
||||||
|
|
||||||
override fun removeEldestEntry(eldest: MutableMap.MutableEntry<K, V>?): Boolean = size > maxSize
|
override fun removeEldestEntry(eldest: MutableMap.MutableEntry<K, V>?): Boolean = size > maxSize
|
||||||
|
override fun toString(): String {
|
||||||
|
return "LruCache(" +
|
||||||
|
"maxSize=$maxSize" +
|
||||||
|
")" +
|
||||||
|
" ${super.toString()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@Serial
|
@Serial
|
||||||
|
|
Loading…
Reference in New Issue