Its probably because you're trying to pass the value of getTypeAsString into the getType method in your toString method.
// Json
Type: Posts; User: Json
Its probably because you're trying to pass the value of getTypeAsString into the getType method in your toString method.
// Json
Or even better, instead of having static ints represent the type of wine, use an enum :)
public enum WineType {
RED,
WHITE,
PINK;
}