@Description(value="Something of use to a super hero") public class Item extends Object
Constructor and Description |
---|
Item() |
Item(long id,
String name,
int powerLevel,
double height,
float weight,
boolean supernatural) |
Modifier and Type | Method and Description |
---|---|
Collection<SuperHero> |
getCanWield() |
ZonedDateTime |
getDateCreated() |
OffsetDateTime |
getDateLastUsed() |
String |
getDescription() |
double |
getHeight() |
long |
getId() |
String |
getName() |
int |
getPowerLevel() |
float |
getWeight() |
boolean |
isArtificialIntelligenceRating() |
boolean |
isInvisible() |
boolean |
isSupernatural() |
void |
setArtificialIntelligenceRating(boolean artificialIntelligenceRating) |
void |
setCanWield(Collection<SuperHero> canWield) |
void |
setDateCreated(ZonedDateTime dateCreated) |
void |
setDateLastUsed(OffsetDateTime dateLastUsed) |
void |
setDescription(String description) |
void |
setHeight(double height) |
void |
setId(long id) |
void |
setInvisible(boolean invisible) |
void |
setName(String name) |
void |
setPowerLevel(int powerLevel) |
void |
setSupernatural(boolean supernatural) |
void |
setWeight(float weight) |
String |
toString() |
public static final String CAPE
public Item()
public Item(long id, String name, int powerLevel, double height, float weight, boolean supernatural)
public long getId()
public void setId(long id)
public String getName()
public void setName(String name)
public int getPowerLevel()
public void setPowerLevel(int powerLevel)
public double getHeight()
public void setHeight(double height)
public float getWeight()
public void setWeight(float weight)
public boolean isSupernatural()
public void setSupernatural(boolean supernatural)
public boolean isInvisible()
public void setInvisible(boolean invisible)
@Ignore public Collection<SuperHero> getCanWield()
public void setCanWield(Collection<SuperHero> canWield)
public boolean isArtificialIntelligenceRating()
@Ignore public void setArtificialIntelligenceRating(boolean artificialIntelligenceRating)
public String getDescription()
@NonNull @DefaultValue(value="An unidentified item") public void setDescription(String description)
public ZonedDateTime getDateCreated()
public void setDateCreated(ZonedDateTime dateCreated)
public OffsetDateTime getDateLastUsed()
public void setDateLastUsed(OffsetDateTime dateLastUsed)
Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.