GWT Wiki
  • GWT Wiki
  • GWT
    • Super Dev Mode
    • Generator
    • 瀏覽器差異
    • 相關工具
  • GXT
    • Component
    • DrawComponent
    • UiChild List
    • trace log
      • chart.client.draw
    • 瀏覽器差異
  • 3rd Party
    • gwt-jackson
    • guava
    • jqm4gwt
Powered by GitBook
On this page
  • Immutable class
  • 沒有 _etter 的 class

Was this helpful?

  1. 3rd Party

gwt-jackson

gwt-jackson

  • repo:https://github.com/nmorel/gwt-jackson

  • jackson-annotation:https://github.com/FasterXML/jackson-annotations

Immutable class

public class Card {
	public final Suit suit;
	public final int number;

	@JsonCreator
	public Card(@JsonProperty("suit") Suit suit, @JsonProperty("number") int number) {
		this.suit = suit;
		this.number = number;
	}
}

沒有 _etter 的 class

@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY)
public class Deck {
	private List<Card> sequence = Lists.newArrayList();
}
Previous3rd PartyNextguava

Last updated 1 year ago

Was this helpful?