1612997fe2e41366573855f56898b27d4c8787244George Mount/* 2612997fe2e41366573855f56898b27d4c8787244George Mount * Copyright (C) 2015 The Android Open Source Project 3612997fe2e41366573855f56898b27d4c8787244George Mount * 4612997fe2e41366573855f56898b27d4c8787244George Mount * Licensed under the Apache License, Version 2.0 (the "License"); 5612997fe2e41366573855f56898b27d4c8787244George Mount * you may not use this file except in compliance with the License. 6612997fe2e41366573855f56898b27d4c8787244George Mount * You may obtain a copy of the License at 7612997fe2e41366573855f56898b27d4c8787244George Mount * 8612997fe2e41366573855f56898b27d4c8787244George Mount * http://www.apache.org/licenses/LICENSE-2.0 9612997fe2e41366573855f56898b27d4c8787244George Mount * 10612997fe2e41366573855f56898b27d4c8787244George Mount * Unless required by applicable law or agreed to in writing, software 11612997fe2e41366573855f56898b27d4c8787244George Mount * distributed under the License is distributed on an "AS IS" BASIS, 12612997fe2e41366573855f56898b27d4c8787244George Mount * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13612997fe2e41366573855f56898b27d4c8787244George Mount * See the License for the specific language governing permissions and 14612997fe2e41366573855f56898b27d4c8787244George Mount * limitations under the License. 15612997fe2e41366573855f56898b27d4c8787244George Mount */ 16fead9ca09b117136b35bc5bf137340a754f9edddGeorge Mountpackage android.databinding; 17612997fe2e41366573855f56898b27d4c8787244George Mount 183561e3e665698843b1c664385a842e779198960bGeorge Mount 19612997fe2e41366573855f56898b27d4c8787244George Mountimport java.lang.annotation.ElementType; 20612997fe2e41366573855f56898b27d4c8787244George Mountimport java.lang.annotation.Target; 21612997fe2e41366573855f56898b27d4c8787244George Mount 22c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount/** 23c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount * Annotate methods that are used to automatically convert from the expression type to the value 24c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount * used in the setter. The converter should take one parameter, the expression type, and the 25c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount * return value should be the target value type used in the setter. Converters are used 26c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount * whenever they can be applied and are not specific to any attribute. 27c9a5d6f140f732ca0ff279a4b1ee315072e1c422George Mount */ 283561e3e665698843b1c664385a842e779198960bGeorge Mount@Target({ElementType.METHOD}) 293561e3e665698843b1c664385a842e779198960bGeorge Mountpublic @interface BindingConversion { 30612997fe2e41366573855f56898b27d4c8787244George Mount} 31