Skip to main content

Home/ Programming/ Group items tagged shortcuts

Rss Feed Group items tagged

yc c

Project Lombok - 0 views

  •  
    @Getter / @Setter Never write public int getFoo() {return foo;} again. @ToString No need to start a debugger to see your fields: Just let lombok generate a toString for you! @EqualsAndHashCode Equality made easy: Generates hashCode and equals implementations from the fields of your object. @Data All together now: A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, and @Setter on all non-final fields. You even get a free constructor to initialize your final fields! @Cleanup Automatic resource management: Call your close() methods safely with no hassle. @Synchronized synchronized done right: Don't expose your locks. @SneakyThrows To boldly throw checked exceptions where no one has thrown them before! The documentation above is a lot easier to follow, but if you want to build your own transformations, or you want to add javadoc to lombok.jar in your IDE, you can also check out the javadoc.
yc c

About Query Editor - Freebase - 0 views

  • Syntax Tolerance MQL, which has JSON syntax, is not so hard to write, but sometimes you can make minor syntax mistakes that renders your query invalid. The query editor automatically tries to clean up such syntax errors behind the scene before running the query, so that you can still make mistakes, such as forgetting quotation marks and commas (illustrated in screenshot below), and your query still runs most of the time. You can also tell the query editor to explicitly clean up your query by clicking the Clean Up button. It will quote unquoted strings and property names, insert missing commas, and remove trailing commas. (Tip: the keyboard shortcut Shift-Ctrl-Enter will clean up your query explicitly and then run it.)
  •  
    Experiment with ways to get data out of Freebase using our JSON-based query language. 
1 - 3 of 3
Showing 20 items per page