@Test @DisplayName("return string ID") void returnStringId() { AnEntity entity = new AnEntity(1_234_567L); assertEquals("1234567", entity.idAsString()); assertSame(entity.idAsString(), entity.idAsString()); }
@Override public String idAsString() { String result = stringId; if (result == null) { synchronized (this) { result = stringId; if (result == null) { stringId = Stringifiers.toString(id()); result = stringId; } } } return result; }
AbstractEntity implements Entity<I, S>, HandlerLifecycle { @Override public String idAsString() { String result = stringId; if (result == null) { synchronized (this) { result = stringId; if (result == null) { stringId = Stringifiers.toString(id()); result = stringId; } } } return result; } }
AbstractEntity implements Entity<I, S>, HandlerLifecycle { @Override public String idAsString() { String result = stringId; if (result == null) { synchronized (this) { result = stringId; if (result == null) { stringId = Stringifiers.toString(id()); result = stringId; } } } return result; } protected  AbstractEntity(); protected  AbstractEntity(I id); protected  AbstractEntity(I id, Function<I, S> defaultState); }
AbstractEntity implements Entity<I, S>, HandlerLifecycle { @Override public String idAsString() { String result = stringId; if (result == null) { synchronized (this) { result = stringId; if (result == null) { stringId = Stringifiers.toString(id()); result = stringId; } } } return result; } protected  AbstractEntity(); protected  AbstractEntity(I id); protected  AbstractEntity(I id, Function<I, S> defaultState); @Override I id(); @Override final S state(); @Override String idAsString(); @Override String toString(); @Override LifecycleFlags getLifecycleFlags(); @Override final boolean isArchived(); @Override final boolean isDeleted(); @Override boolean lifecycleFlagsChanged(); @Override Version version(); Timestamp whenModified(); @OverridingMethodsMustInvokeSuper @Override void beforeInvoke(HandlerMethod<?, ?, ?, ?> method); @OverridingMethodsMustInvokeSuper @Override void afterInvoke(HandlerMethod<?, ?, ?, ?> method); final FluentLogger.Api at(Level logLevel); @Override boolean equals(Object o); @Override int hashCode(); }
AbstractEntity implements Entity<I, S>, HandlerLifecycle { @Override public String idAsString() { String result = stringId; if (result == null) { synchronized (this) { result = stringId; if (result == null) { stringId = Stringifiers.toString(id()); result = stringId; } } } return result; } protected  AbstractEntity(); protected  AbstractEntity(I id); protected  AbstractEntity(I id, Function<I, S> defaultState); @Override I id(); @Override final S state(); @Override String idAsString(); @Override String toString(); @Override LifecycleFlags getLifecycleFlags(); @Override final boolean isArchived(); @Override final boolean isDeleted(); @Override boolean lifecycleFlagsChanged(); @Override Version version(); Timestamp whenModified(); @OverridingMethodsMustInvokeSuper @Override void beforeInvoke(HandlerMethod<?, ?, ?, ?> method); @OverridingMethodsMustInvokeSuper @Override void afterInvoke(HandlerMethod<?, ?, ?, ?> method); final FluentLogger.Api at(Level logLevel); @Override boolean equals(Object o); @Override int hashCode();  }