@Test public void toString_NamingDisabled() { ReplicantTestUtil.disableNames(); final AreaOfInterestRequest entry = new AreaOfInterestRequest( new ChannelAddress( 1, 2 ), AreaOfInterestRequest.Type.UPDATE, "XXX" ); assertEquals( entry.toString(), "replicant.AreaOfInterestRequest@" + Integer.toHexString( System.identityHashCode( entry ) ) ); }
@Override public String toString() { if ( Replicant.areNamesEnabled() ) { final ChannelAddress address = getAddress(); return "AreaOfInterestRequest[" + "Type=" + _type + " Address=" + address + ( null == _filter ? "" : " Filter=" + FilterUtil.filterToString( _filter ) ) + "]" + ( -1 != _requestId ? "(InProgress)" : "" ); } else { return super.toString(); } }
AreaOfInterestRequest { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { final ChannelAddress address = getAddress(); return "AreaOfInterestRequest[" + "Type=" + _type + " Address=" + address + ( null == _filter ? "" : " Filter=" + FilterUtil.filterToString( _filter ) ) + "]" + ( -1 != _requestId ? "(InProgress)" : "" ); } else { return super.toString(); } } }
AreaOfInterestRequest { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { final ChannelAddress address = getAddress(); return "AreaOfInterestRequest[" + "Type=" + _type + " Address=" + address + ( null == _filter ? "" : " Filter=" + FilterUtil.filterToString( _filter ) ) + "]" + ( -1 != _requestId ? "(InProgress)" : "" ); } else { return super.toString(); } } AreaOfInterestRequest( @Nonnull final ChannelAddress address,
                         @Nonnull final Type type,
                         @Nullable final Object filter ); }
AreaOfInterestRequest { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { final ChannelAddress address = getAddress(); return "AreaOfInterestRequest[" + "Type=" + _type + " Address=" + address + ( null == _filter ? "" : " Filter=" + FilterUtil.filterToString( _filter ) ) + "]" + ( -1 != _requestId ? "(InProgress)" : "" ); } else { return super.toString(); } } AreaOfInterestRequest( @Nonnull final ChannelAddress address,
                         @Nonnull final Type type,
                         @Nullable final Object filter ); @Override String toString(); }
AreaOfInterestRequest { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { final ChannelAddress address = getAddress(); return "AreaOfInterestRequest[" + "Type=" + _type + " Address=" + address + ( null == _filter ? "" : " Filter=" + FilterUtil.filterToString( _filter ) ) + "]" + ( -1 != _requestId ? "(InProgress)" : "" ); } else { return super.toString(); } } AreaOfInterestRequest( @Nonnull final ChannelAddress address,
                         @Nonnull final Type type,
                         @Nullable final Object filter ); @Override String toString();  }