public EntityQuery filterByDate(Timestamp moment,String... filterByFieldName){
  this.filterByDate=true;
  this.filterByDateMoment=moment;
  if (filterByFieldName.length % 2 != 0) {
    throw new IllegalArgumentException("You must pass an even sized array to this method, each pair should represent a from date field name and a thru date field name");
  }
  this.filterByFieldNames=Arrays.asList(filterByFieldName);
  return this;
}

public EntityQuery filterByDate ( Timestamp moment , String ... filterByFieldName ) { this . filterByDate = true ; this . filterByDateMoment = moment ; if ( filterByFieldName . length % 2 != 0 ) { throw new IllegalArgumentException ( "You must pass an even sized array to this method, each pair should represent a from date field name and a thru date field name" ) ; } this . filterByFieldNames = Arrays . asList ( filterByFieldName ) ; return this ; }
specifies whether the query should return only values that are active during the specified moment using the specified from / thru field name pairs .
