Code example for FieldAttributes

Methods: getName

0
	Gson gson = new GsonBuilder().setPrettyPrinting().addSerializationExclusionStrategy(new ExclusionStrategy() 
	{//these add a exclusion Strategy to the Gson to ignore some fields when serialize. 
		 
		@Override 
		public boolean shouldSkipField(FieldAttributes f) { 
			 return f.getName().toLowerCase().contains("texture");  
		} 
		 
		@Override 
		public boolean shouldSkipClass(Class<?> clazz) { 
			return false; 
		} 
	}).create(); 
	 
	 
	/* 
	 * Method that save the options.java in a Json archive. 
	 */ 
	public void saveOptions(Options options){
		JsonWriter writer;
Connect your IDE to all the code out there  Get Codota for Java