@Test public void testToString_namesDisabled() { ReplicantTestUtil.disableNames(); final AreaOfInterest areaOfInterest = createAreaOfInterest( new ChannelAddress( 1, 0 ) ); assertEquals( areaOfInterest.toString(), "replicant.Arez_AreaOfInterest@" + Integer.toHexString( areaOfInterest.hashCode() ) ); }
@Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "AreaOfInterest[" + _address + ( null == _filter ? "" : " Filter: " + FilterUtil.filterToString( _filter ) ) + " Status: " + _status + "]"; } else { return super.toString(); } }
AreaOfInterest extends ReplicantService { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "AreaOfInterest[" + _address + ( null == _filter ? "" : " Filter: " + FilterUtil.filterToString( _filter ) ) + " Status: " + _status + "]"; } else { return super.toString(); } } }
AreaOfInterest extends ReplicantService { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "AreaOfInterest[" + _address + ( null == _filter ? "" : " Filter: " + FilterUtil.filterToString( _filter ) ) + " Status: " + _status + "]"; } else { return super.toString(); } } AreaOfInterest( @Nullable final ReplicantContext context,
                  @Nonnull final ChannelAddress address,
                  @Nullable final Object filter ); }
AreaOfInterest extends ReplicantService { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "AreaOfInterest[" + _address + ( null == _filter ? "" : " Filter: " + FilterUtil.filterToString( _filter ) ) + " Status: " + _status + "]"; } else { return super.toString(); } } AreaOfInterest( @Nullable final ReplicantContext context,
                  @Nonnull final ChannelAddress address,
                  @Nullable final Object filter ); void incRefCount(); int getRefCount(); void decRefCount(); @Nonnull ChannelAddress getAddress(); @Observable @Nullable Object getFilter(); @Observable( readOutsideTransaction = Feature.ENABLE ) @Nonnull Status getStatus(); @Observable @Nullable abstract Throwable getError(); @Memoize @Nullable Subscription getSubscription(); @Override String toString(); }
AreaOfInterest extends ReplicantService { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "AreaOfInterest[" + _address + ( null == _filter ? "" : " Filter: " + FilterUtil.filterToString( _filter ) ) + " Status: " + _status + "]"; } else { return super.toString(); } } AreaOfInterest( @Nullable final ReplicantContext context,
                  @Nonnull final ChannelAddress address,
                  @Nullable final Object filter ); void incRefCount(); int getRefCount(); void decRefCount(); @Nonnull ChannelAddress getAddress(); @Observable @Nullable Object getFilter(); @Observable( readOutsideTransaction = Feature.ENABLE ) @Nonnull Status getStatus(); @Observable @Nullable abstract Throwable getError(); @Memoize @Nullable Subscription getSubscription(); @Override String toString();  }