@Test public void equals() { final RyaDetails.Builder builder = RyaDetails.builder(); builder.setRyaInstanceName("test_instance") .setRyaVersion("1.2.3.4") .setEntityCentricIndexDetails( new EntityCentricIndexDetails(true) ) .setTemporalIndexDetails( new TemporalIndexDetails(true) ) .setFreeTextDetails( new FreeTextIndexDetails(true) ) .setPCJIndexDetails( PCJIndexDetails.builder() .setEnabled(true) .setFluoDetails( new FluoDetails("test_instance_rya_pcj_updater") ) .addPCJDetails( PCJDetails.builder() .setId("pcj 1") .setUpdateStrategy(PCJUpdateStrategy.BATCH) .setLastUpdateTime( new Date() )) .addPCJDetails( PCJDetails.builder() .setId("pcj 2") .setUpdateStrategy(PCJUpdateStrategy.INCREMENTAL))) .setProspectorDetails( new ProspectorDetails(Optional.of(new Date())) ) .setJoinSelectivityDetails( new JoinSelectivityDetails(Optional.of(new Date())) ) .setRyaStreamsDetails(new RyaStreamsDetails("localhost", 5)); final RyaDetails details1 = builder.build(); final RyaDetails details2 = builder.build(); assertEquals(details1, details2); }
@Override public boolean equals(final Object obj) { if(this == obj) { return true; } if(obj instanceof RyaDetails) { final RyaDetails details = (RyaDetails) obj; return Objects.equals(instanceName, details.instanceName) && Objects.equals(version, details.version) && Objects.equals(entityCentricDetails, details.entityCentricDetails) && Objects.equals(pcjDetails, details.pcjDetails) && Objects.equals(temporalDetails, details.temporalDetails) && Objects.equals(freeTextDetails, details.freeTextDetails) && Objects.equals(prospectorDetails, details.prospectorDetails) && Objects.equals(joinSelectivityDetails, details.joinSelectivityDetails) && Objects.equals(ryaStreamsDetails, details.ryaStreamsDetails); } return false; }
RyaDetails implements Serializable { @Override public boolean equals(final Object obj) { if(this == obj) { return true; } if(obj instanceof RyaDetails) { final RyaDetails details = (RyaDetails) obj; return Objects.equals(instanceName, details.instanceName) && Objects.equals(version, details.version) && Objects.equals(entityCentricDetails, details.entityCentricDetails) && Objects.equals(pcjDetails, details.pcjDetails) && Objects.equals(temporalDetails, details.temporalDetails) && Objects.equals(freeTextDetails, details.freeTextDetails) && Objects.equals(prospectorDetails, details.prospectorDetails) && Objects.equals(joinSelectivityDetails, details.joinSelectivityDetails) && Objects.equals(ryaStreamsDetails, details.ryaStreamsDetails); } return false; } }
RyaDetails implements Serializable { @Override public boolean equals(final Object obj) { if(this == obj) { return true; } if(obj instanceof RyaDetails) { final RyaDetails details = (RyaDetails) obj; return Objects.equals(instanceName, details.instanceName) && Objects.equals(version, details.version) && Objects.equals(entityCentricDetails, details.entityCentricDetails) && Objects.equals(pcjDetails, details.pcjDetails) && Objects.equals(temporalDetails, details.temporalDetails) && Objects.equals(freeTextDetails, details.freeTextDetails) && Objects.equals(prospectorDetails, details.prospectorDetails) && Objects.equals(joinSelectivityDetails, details.joinSelectivityDetails) && Objects.equals(ryaStreamsDetails, details.ryaStreamsDetails); } return false; } private  RyaDetails(
            final String instanceName,
            final String version,
            final ImmutableList<String> users,
            final EntityCentricIndexDetails entityCentricDetails,
//RYA-215            final GeoIndexDetails geoDetails,
            final PCJIndexDetails pcjDetails,
            final TemporalIndexDetails temporalDetails,
            final FreeTextIndexDetails freeTextDetails,
            final ProspectorDetails prospectorDetails,
            final JoinSelectivityDetails joinSelectivityDetails,
            final Optional<RyaStreamsDetails> ryaStreamsDetails); }
RyaDetails implements Serializable { @Override public boolean equals(final Object obj) { if(this == obj) { return true; } if(obj instanceof RyaDetails) { final RyaDetails details = (RyaDetails) obj; return Objects.equals(instanceName, details.instanceName) && Objects.equals(version, details.version) && Objects.equals(entityCentricDetails, details.entityCentricDetails) && Objects.equals(pcjDetails, details.pcjDetails) && Objects.equals(temporalDetails, details.temporalDetails) && Objects.equals(freeTextDetails, details.freeTextDetails) && Objects.equals(prospectorDetails, details.prospectorDetails) && Objects.equals(joinSelectivityDetails, details.joinSelectivityDetails) && Objects.equals(ryaStreamsDetails, details.ryaStreamsDetails); } return false; } private  RyaDetails(
            final String instanceName,
            final String version,
            final ImmutableList<String> users,
            final EntityCentricIndexDetails entityCentricDetails,
//RYA-215            final GeoIndexDetails geoDetails,
            final PCJIndexDetails pcjDetails,
            final TemporalIndexDetails temporalDetails,
            final FreeTextIndexDetails freeTextDetails,
            final ProspectorDetails prospectorDetails,
            final JoinSelectivityDetails joinSelectivityDetails,
            final Optional<RyaStreamsDetails> ryaStreamsDetails); String getRyaInstanceName(); String getRyaVersion(); ImmutableList<String> getUsers(); EntityCentricIndexDetails getEntityCentricIndexDetails(); PCJIndexDetails getPCJIndexDetails(); TemporalIndexDetails getTemporalIndexDetails(); FreeTextIndexDetails getFreeTextIndexDetails(); ProspectorDetails getProspectorDetails(); JoinSelectivityDetails getJoinSelectivityDetails(); Optional<RyaStreamsDetails> getRyaStreamsDetails(); @Override int hashCode(); @Override boolean equals(final Object obj); static Builder builder(); static Builder builder(final RyaDetails details); }
RyaDetails implements Serializable { @Override public boolean equals(final Object obj) { if(this == obj) { return true; } if(obj instanceof RyaDetails) { final RyaDetails details = (RyaDetails) obj; return Objects.equals(instanceName, details.instanceName) && Objects.equals(version, details.version) && Objects.equals(entityCentricDetails, details.entityCentricDetails) && Objects.equals(pcjDetails, details.pcjDetails) && Objects.equals(temporalDetails, details.temporalDetails) && Objects.equals(freeTextDetails, details.freeTextDetails) && Objects.equals(prospectorDetails, details.prospectorDetails) && Objects.equals(joinSelectivityDetails, details.joinSelectivityDetails) && Objects.equals(ryaStreamsDetails, details.ryaStreamsDetails); } return false; } private  RyaDetails(
            final String instanceName,
            final String version,
            final ImmutableList<String> users,
            final EntityCentricIndexDetails entityCentricDetails,
//RYA-215            final GeoIndexDetails geoDetails,
            final PCJIndexDetails pcjDetails,
            final TemporalIndexDetails temporalDetails,
            final FreeTextIndexDetails freeTextDetails,
            final ProspectorDetails prospectorDetails,
            final JoinSelectivityDetails joinSelectivityDetails,
            final Optional<RyaStreamsDetails> ryaStreamsDetails); String getRyaInstanceName(); String getRyaVersion(); ImmutableList<String> getUsers(); EntityCentricIndexDetails getEntityCentricIndexDetails(); PCJIndexDetails getPCJIndexDetails(); TemporalIndexDetails getTemporalIndexDetails(); FreeTextIndexDetails getFreeTextIndexDetails(); ProspectorDetails getProspectorDetails(); JoinSelectivityDetails getJoinSelectivityDetails(); Optional<RyaStreamsDetails> getRyaStreamsDetails(); @Override int hashCode(); @Override boolean equals(final Object obj); static Builder builder(); static Builder builder(final RyaDetails details);  }