/** * Returns the name of the index. * * @return the name of the index */ @Override public String toString() { return getName(); }
/** * Restricted copy constructor. * @param beanToCopy the bean to copy from, not null */ private Builder(ImmutablePriceIndex beanToCopy) { this.name = beanToCopy.getName(); this.region = beanToCopy.getRegion(); this.currency = beanToCopy.getCurrency(); this.active = beanToCopy.isActive(); this.publicationFrequency = beanToCopy.getPublicationFrequency(); }
@Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case 3373707: // name return ((ImmutablePriceIndex) bean).getName(); case -934795532: // region return ((ImmutablePriceIndex) bean).getRegion(); case 575402001: // currency return ((ImmutablePriceIndex) bean).getCurrency(); case -1422950650: // active return ((ImmutablePriceIndex) bean).isActive(); case -1407208304: // publicationFrequency return ((ImmutablePriceIndex) bean).getPublicationFrequency(); } return super.propertyGet(bean, propertyName, quiet); }