- public class Property {
- private String propertyId;
- private String propertyType;
- private double propertyValue;
- private String propertyStatus;
- public Property(String propertyId, String propertyType, double propertyValue) {
- super();
- this.propertyId = propertyId;
- this.propertyType = propertyType;
- this.propertyValue = propertyValue;
- this.propertyStatus = "available";
- }
- public String getPropertyId() {
- return propertyId;
- }
- public void setPropertyId(String propertyId) {
- this.propertyId = propertyId;
- }
- public String getPropertyType() {
- return propertyType;
- }
- public void setPropertyType(String propertyType) {
- this.propertyType = propertyType;
- }
- public double getPropertyValue() {
- return propertyValue;
- }
- public void setPropertyValue(double propertyValue) {
- this.propertyValue = propertyValue;
- }
- public String getPropertyStatus() {
- return propertyStatus;
- }
- public void setPropertyStatus(String propertyStatus) {
- this.propertyStatus = propertyStatus;
- }
- public double getOfferPrice(){
- double offerValue = 0;
- if(propertyValue>30000 && propertyValue<50000){
- offerValue = propertyValue+(propertyValue*20)/100;
- }else if(propertyValue>50001 && propertyValue<100000){
- offerValue = propertyValue+(propertyValue*40)/100;
- }else if(propertyValue>100000){
- offerValue = propertyValue+(propertyValue*50)/100;
- }else{
- offerValue = propertyValue+(propertyValue*10)/100;
- }
- return offerValue;
- }
- }
[text] jbroker
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- jbroker
- Paste Code
- 29 Jan-2020
- 2.06 Kb
You can Share it: